Lines Matching refs:nn
183 int nn; in gsm_hex_to_bytes0() local
185 for (nn = 0; nn < hexlen/2; nn++ ) { in gsm_hex_to_bytes0()
186 dst[nn] = (byte_t) gsm_hex2_to_byte0( (const char*)hex+2*nn ); in gsm_hex_to_bytes0()
189 dst[nn] = gsm_hexchar_to_int0( hex[2*nn] ) << 4; in gsm_hex_to_bytes0()
196 int nn; in gsm_hex_to_bytes() local
201 for (nn = 0; nn < hexlen/2; nn++ ) { in gsm_hex_to_bytes()
202 int c = gsm_hex2_to_byte( (const char*)hex+2*nn ); in gsm_hex_to_bytes()
204 dst[nn] = (byte_t) c; in gsm_hex_to_bytes()
212 int nn; in gsm_hex_from_bytes() local
214 for (nn = 0; nn < srclen; nn++) { in gsm_hex_from_bytes()
215 gsm_hex_from_byte( hex + 2*nn, src[nn] ); in gsm_hex_from_bytes()
502 int nn; in ucs2_to_utf8() local
505 for (nn = 0; nn < ucs2len; ucs2 += 2, nn++) { in ucs2_to_utf8()
567 int nn; in unichar_to_gsm7() local
568 for (nn = 0; nn < 128; nn++) { in unichar_to_gsm7()
569 if (gsm7bits_to_unicode[nn] == unicode) { in unichar_to_gsm7()
570 return nn; in unichar_to_gsm7()
579 int nn; in unichar_to_gsm7_extend() local
580 for (nn = 0; nn < 128; nn++) { in unichar_to_gsm7_extend()
581 if (gsm7bits_extend_to_unicode[nn] == unichar) { in unichar_to_gsm7_extend()
582 return nn; in unichar_to_gsm7_extend()
593 int nn; in unichar_to_gsm7_count() local
595 nn = unichar_to_gsm7(unicode); in unichar_to_gsm7_count()
596 if (nn >= 0) in unichar_to_gsm7_count()
599 nn = unichar_to_gsm7_extend(unicode); in unichar_to_gsm7_count()
600 if (nn >= 0) in unichar_to_gsm7_count()
861 int nn; in utf8_to_gsm7() local
866 nn = unichar_to_gsm7(c); in utf8_to_gsm7()
867 if (nn >= 0) { in utf8_to_gsm7()
868 bwriter_add7( writer, nn ); in utf8_to_gsm7()
872 nn = unichar_to_gsm7_extend(c); in utf8_to_gsm7()
873 if (nn >= 0) { in utf8_to_gsm7()
875 bwriter_add7( writer, nn ); in utf8_to_gsm7()
894 int nn; in utf8_to_gsm8() local
899 nn = unichar_to_gsm7(c); in utf8_to_gsm8()
900 if (nn >= 0) { in utf8_to_gsm8()
902 dst[result] = (byte_t)nn; in utf8_to_gsm8()
907 nn = unichar_to_gsm7_extend(c); in utf8_to_gsm8()
908 if (nn >= 0) { in utf8_to_gsm8()
911 dst[result+1] = (byte_t) nn; in utf8_to_gsm8()
935 int nn; in ucs2_to_gsm7() local
937 for (nn = 0; nn < 128; nn++) { in ucs2_to_gsm7()
938 if ( gsm7bits_to_unicode[nn] == c ) { in ucs2_to_gsm7()
939 bwriter_add7( writer, nn ); in ucs2_to_gsm7()
943 for (nn = 0; nn < 128; nn++) { in ucs2_to_gsm7()
944 if ( gsm7bits_extend_to_unicode[nn] == c ) { in ucs2_to_gsm7()
946 bwriter_add7( writer, nn ); in ucs2_to_gsm7()
969 int nn; in ucs2_to_gsm8() local
971 for (nn = 0; nn < 128; nn++) { in ucs2_to_gsm8()
972 if ( gsm7bits_to_unicode[nn] == c ) { in ucs2_to_gsm8()
973 *dst++ = (byte_t)nn; in ucs2_to_gsm8()
977 for (nn = 0; nn < 128; nn++) { in ucs2_to_gsm8()
978 if ( gsm7bits_extend_to_unicode[nn] == c ) { in ucs2_to_gsm8()
980 dst[1] = (byte_t) nn; in ucs2_to_gsm8()