@@ -103,7 +103,7 @@ lxb_unicode_normalizer_init(lxb_unicode_normalizer_t *uc,
103103 return status ;
104104 }
105105
106- uc -> tmp_lenght = 0 ;
106+ uc -> tmp_length = 0 ;
107107 uc -> starter = NULL ;
108108
109109 uc -> buf = lexbor_malloc (buf_length * sizeof (lxb_unicode_buffer_t ));
@@ -123,7 +123,7 @@ lxb_unicode_normalizer_init(lxb_unicode_normalizer_t *uc,
123123void
124124lxb_unicode_normalizer_clean (lxb_unicode_normalizer_t * uc )
125125{
126- uc -> tmp_lenght = 0 ;
126+ uc -> tmp_length = 0 ;
127127 uc -> starter = NULL ;
128128 uc -> p = uc -> buf ;
129129 uc -> ican = uc -> buf ;
@@ -328,7 +328,7 @@ lxb_unicode_restore(lxb_unicode_normalizer_t *uc, const lxb_char_t *data,
328328 lxb_char_t * tmp ;
329329
330330 tmp = uc -> tmp ;
331- len = uc -> tmp_lenght ;
331+ len = uc -> tmp_length ;
332332
333333 i = lxb_encoding_decode_utf_8_length (tmp [0 ]);
334334
@@ -341,14 +341,14 @@ lxb_unicode_restore(lxb_unicode_normalizer_t *uc, const lxb_char_t *data,
341341 tmp + i );
342342 if (* cp == LXB_ENCODING_DECODE_ERROR ) {
343343 if (!is_last ) {
344- uc -> tmp_lenght = len ;
344+ uc -> tmp_length = len ;
345345 return NULL ;
346346 }
347347
348348 * cp = LXB_ENCODING_REPLACEMENT_CODEPOINT ;
349349 }
350350
351- uc -> tmp_lenght = 0 ;
351+ uc -> tmp_length = 0 ;
352352
353353 return data ;
354354}
@@ -393,7 +393,7 @@ lxb_unicode_normalize_body(lxb_unicode_normalizer_t *uc, const void *data,
393393 length *= (is_cp ) ? sizeof (lxb_codepoint_t ) : 1 ;
394394 end = (const lxb_char_t * ) data + length ;
395395
396- if (uc -> tmp_lenght != 0 && !is_cp ) {
396+ if (uc -> tmp_length != 0 && !is_cp ) {
397397 np = lxb_unicode_restore (uc , np , end , & cp , is_last );
398398 if (np == NULL ) {
399399 return LXB_STATUS_OK ;
@@ -410,9 +410,9 @@ lxb_unicode_normalize_body(lxb_unicode_normalizer_t *uc, const void *data,
410410 if (cp == LXB_ENCODING_DECODE_ERROR ) {
411411 if (np >= end && !is_last ) {
412412 uc -> p = p ;
413- uc -> tmp_lenght = end - tp ;
413+ uc -> tmp_length = end - tp ;
414414
415- memcpy (uc -> tmp , tp , uc -> tmp_lenght );
415+ memcpy (uc -> tmp , tp , uc -> tmp_length );
416416
417417 return LXB_STATUS_OK ;
418418 }
@@ -530,7 +530,7 @@ lxb_unicode_quick_check(lxb_unicode_normalizer_t *uc, const lxb_char_t *data,
530530
531531 end = data + length ;
532532
533- if (uc -> tmp_lenght != 0 ) {
533+ if (uc -> tmp_length != 0 ) {
534534 data = lxb_unicode_restore (uc , data , end , & cp , is_last );
535535 if (data == NULL ) {
536536 return LXB_STATUS_OK ;
@@ -545,9 +545,9 @@ lxb_unicode_quick_check(lxb_unicode_normalizer_t *uc, const lxb_char_t *data,
545545 cp = lxb_encoding_decode_valid_utf_8_single (& data , end );
546546 if (cp == LXB_ENCODING_DECODE_ERROR ) {
547547 if (data >= end && !is_last ) {
548- uc -> tmp_lenght = end - tp ;
548+ uc -> tmp_length = end - tp ;
549549
550- memcpy (uc -> tmp , tp , uc -> tmp_lenght );
550+ memcpy (uc -> tmp , tp , uc -> tmp_length );
551551
552552 return LXB_STATUS_OK ;
553553 }
0 commit comments