Home
last modified time | relevance | path

Searched refs:utf8len (Results 1 – 25 of 472) sorted by relevance

12345678910>>...19

/dports/textproc/p5-Unicode-LineBreak/Unicode-LineBreak-2019.001/sombok/lib/
H A Dutf8.c53 utf8len = 0; in sombok_decode_utf8()
231 utf8len++; in sombok_encode_utf8()
240 utf8len += 2; in sombok_encode_utf8()
251 utf8len += 3; in sombok_encode_utf8()
264 utf8len += 4; in sombok_encode_utf8()
279 utf8len += 5; in sombok_encode_utf8()
296 utf8len += 6; in sombok_encode_utf8()
307 utf8[utf8len] = '\0'; in sombok_encode_utf8()
312 utf8[utf8len] = '\0'; in sombok_encode_utf8()
314 utf8[utf8len] = '\0'; in sombok_encode_utf8()
[all …]
/dports/databases/spatialite/libspatialite-5.0.1/src/gaiaaux/
H A Dgg_utf8.c111 size_t utf8len; in gaiaConvertCharset() local
129 utf8len = maxlen; in gaiaConvertCharset()
135 utf8buf[maxlen - utf8len] = '\0'; in gaiaConvertCharset()
177 size_t utf8len; in gaiaConvertToUTF8() local
188 utf8len = maxlen; in gaiaConvertToUTF8()
197 utf8buf[maxlen - utf8len] = '\0'; in gaiaConvertToUTF8()
207 size_t utf8len; in url_toUtf8() local
224 utf8len = maxlen; in url_toUtf8()
229 utf8buf[maxlen - utf8len] = '\0'; in url_toUtf8()
246 size_t utf8len; in url_fromUtf8() local
[all …]
/dports/audio/moony-lv2/moony-0.36.0/subprojects/d2tk/utf8.h/test/
H A Dmain.c467 UTEST(utf8len, data) { ASSERT_EQ(53, utf8len(data)); } in UTEST() argument
472 ASSERT_EQ(0, utf8len(cat)); in UTEST()
483 ASSERT_EQ(1, utf8len(cat)); in UTEST()
495 ASSERT_EQ(1, utf8len(cat)); in UTEST()
508 ASSERT_EQ(1, utf8len(cat)); in UTEST()
522 ASSERT_EQ(1, utf8len(cat)); in UTEST()
530 ASSERT_EQ(0, utf8len(cat)); in UTEST()
604 ASSERT_EQ(53, utf8len(dup)); in UTEST()
611 ASSERT_EQ(2, utf8len(dup)); in UTEST()
618 ASSERT_EQ(0, utf8len(dup)); in UTEST()
[all …]
/dports/security/tthsum/tthsum/
H A Dutf8_test.c33 unsigned utf8len = strlen(utf8); in symcmpbin() local
40 if (utf8len >= 2048 || unicodelen >= 512) in symcmpbin()
42 utf8len, unicodelen); in symcmpbin()
46 if ((ret = (unsigned)wcstoutf8(utf8buf, unicode, 2048)) != utf8len) in symcmpbin()
48 name, ret, utf8len); in symcmpbin()
52 if ((ret = (unsigned)wcstoautf8(&utf8alloc, unicode)) != utf8len) { in symcmpbin()
55 name, ret, utf8len); in symcmpbin()
58 allocsuccess = memcmp(utf8, utf8alloc, utf8len + 1) == 0 && memcmp(unicode, in symcmpbin()
63 TEST_PASS3(memcmp(utf8, utf8buf, utf8len + 1) == 0, in symcmpbin()
/dports/audio/festival/festival/src/arch/festival/
H A Dfestival.cc479 unsigned int utf8len; in utf8_chr() local
483 utf8len = 1; in utf8_chr()
485 utf8len = 2; in utf8_chr()
487 utf8len = 3; in utf8_chr()
489 utf8len = 4; in utf8_chr()
492 utf8len = 2; in utf8_chr()
499 switch (utf8len) { in utf8_chr()
517 switch (utf8len) { in utf8_chr()
532 return utf8len; in utf8_chr()
537 int utf8len; in utf8_chr_wrapper() local
[all …]
/dports/x11/p5-X11-Protocol-Other/X11-Protocol-Other-31/devel/
H A DEncode-X11-xlib2.c50 int utf8len = 0; in main() local
66 utf8[utf8len++] = strtol (part, NULL, 16); in main()
68 utf8[utf8len++] = strtol (part, NULL, 16); in main()
70 utf8[utf8len] = '\0'; in main()
108 for (i = 0; i < utf8len; i++) { in main()
/dports/emulators/yaze-ag/yaze-ag-2.51.0/
H A Dconin.c167 utf8len = 0, /* Initialise just to keep the compiler happy */ in conin() local
201 utf8len = 1; in conin()
206 utf8len = 2; in conin()
211 utf8len = 3; in conin()
216 utf8len = 4; in conin()
221 utf8len = 5; in conin()
243 if (--utf8len == 0) in conin()
/dports/audio/flite/flite-2.1-release/src/utils/
H A Dcst_val.c575 unsigned int utf8len; in utf8_chr() local
579 utf8len = 1; in utf8_chr()
581 utf8len = 2; in utf8_chr()
583 utf8len = 3; in utf8_chr()
585 utf8len = 4; in utf8_chr()
588 utf8len = 2; in utf8_chr()
595 switch (utf8len) { in utf8_chr()
613 switch (utf8len) { in utf8_chr()
628 return utf8len; in utf8_chr()
633 int utf8len; in cst_utf8_chr() local
[all …]
/dports/mail/dovecot/dovecot-2.3.17/src/lib/
H A Dtest-unichar.c152 unsigned int utf8len = uni_utf8_char_bytes((unsigned char)*str_c(str)); in test_unichar() local
155 while (--utf8len > 0) in test_unichar()
156 test_assert(uni_utf8_get_char_n(str_c(str), utf8len, &chr2) == 0); in test_unichar()
158 utf8len = uni_utf8_char_bytes((unsigned char)*str_c(str)); in test_unichar()
161 while (--utf8len > 0) { in test_unichar()
162 str_truncate(str, utf8len); in test_unichar()
/dports/games/ufoai/ufoai-2.5-source/src/shared/
H A Dutf8.cpp68 const int utf8len = UTF8_encoded_len(c); in UTF8_insert_char_at() local
71 if (utf8len == 0) in UTF8_insert_char_at()
74 if (pos + tail + utf8len > n) in UTF8_insert_char_at()
78 memmove(&s[pos + utf8len], &s[pos], tail); in UTF8_insert_char_at()
96 return utf8len; in UTF8_insert_char_at()
/dports/www/netsurf/netsurf-3.10/frontends/windows/
H A Dfont.c184 size_t utf8len, in win32_font_width() argument
196 if (utf8len == 0) { in win32_font_width()
205 wclen = MultiByteToWideChar(CP_UTF8, 0, utf8str, utf8len, wstr, WSTRLEN); in win32_font_width()
240 size_t utf8len, in win32_font_position() argument
253 if ((utf8len == 0) || (x < 1)) { in win32_font_position()
263 if ((GetTextExtentExPointA(hdc, utf8str, utf8len, x, &offset, NULL, &s) != 0) && in win32_font_position()
/dports/security/beid/eid-mw-5.0.8/plugins_tools/util/
H A Dutftranslate.c27 char* Utf16ToUtf8(const wchar_t * utf16string, unsigned long* utf8len, char* buf) in Utf16ToUtf8() argument
31 if(utf8bytesize > *utf8len && buf != NULL) { in Utf16ToUtf8()
37 *utf8len = utf8bytesize - 1; in Utf16ToUtf8()
/dports/deskutils/fbreader/FBReader-0.99.6-freebsdport/zlibrary/ui/src/win32/view/
H A DZLWin32PaintContext.cpp160 int utf8len = ZLUnicodeUtil::utf8Length(str, len); in stringWidth() local
161 if (utf8len == len) { in stringWidth()
166 ZLUnicodeUtil::utf8ToUcs2(ucs2Str, str, len, utf8len); in stringWidth()
167 GetTextExtentPointW(myDisplayContext, ::wchar(ucs2Str), utf8len, &size); in stringWidth()
196 int utf8len = ZLUnicodeUtil::utf8Length(str, len); in drawString() local
198 if (utf8len == len) { in drawString()
203 ZLUnicodeUtil::utf8ToUcs2(ucs2Str, str, len, utf8len); in drawString()
204 TextOutW(myDisplayContext, x, y, ::wchar(ucs2Str), utf8len); in drawString()
/dports/lang/librep/librep_0.92.7/src/
H A Dutf8.c208 int utf8len, slen; variable
214 utf8len = utf8_strlen(rep_STR(string), -1);
215 if(rep_INT(start) > utf8len || rep_INT(start) < 0)
220 if((rep_INT(end) > utf8len) || (rep_INT(end) < rep_INT(start)))
/dports/security/john/john-1.9.0-jumbo-1/src/
H A Dmssql-old_fmt_plug.c180 int utf8len, orig_len; in set_key() local
189 utf8len = enc_uc(utf8, sizeof(utf8), (unsigned char*)key, orig_len); in set_key()
190 if (utf8len <= 0 && *key) in set_key()
194 …OEF_32-1)) + (unsigned int)index/SIMD_COEF_32*SHA_BUF_SIZ*SIMD_COEF_32] = (2*utf8len+SALT_SIZE)<<3; in set_key()
195 for (i=0;i<utf8len;i++) in set_key()
208 int utf8len = strlen(key); in set_key_enc() local
217 utf16len = enc_to_utf16(utf16key_tmp, PLAINTEXT_LENGTH, (unsigned char*)key, utf8len); in set_key_enc()
219 utf8len = -utf16len; in set_key_enc()
220 plain_keys[index][utf8len] = 0; // match truncation! in set_key_enc()
/dports/textproc/zenxml/zenxml-2.4/zen/
H A Dutf.h253 size_t utf8len = getUtf8Len(*strFirst); in unicodeLength() local
254 if (utf8len == 0) ++utf8len; //invalid utf8 character in unicodeLength()
255 strFirst += utf8len; in unicodeLength()
319 size_t utf8len = getUtf8Len(strFirst[utfPos]); in findUnicodePos() local
320 if (utf8len == 0) ++utf8len; //invalid utf8 character in findUnicodePos()
321 utfPos += utf8len; in findUnicodePos()
/dports/graphics/cptutils/cptutils-1.74/src/pssvg/
H A Ducs2utf8.c13 size_t utf8len) in ucs2_to_utf8() argument
27 utf8_bytes_left = utf8len, in ucs2_to_utf8()
/dports/games/ufoai/ufoai-2.5-source/src/client/renderer/
H A Dr_font.cpp402 int utf8len; in R_FontMakeChunks() local
411 utf8len = 1; in R_FontMakeChunks()
412 while (len > utf8len && UTF8_CONTINUATION_BYTE(buf[pos + len - utf8len])) in R_FontMakeChunks()
413 utf8len++; in R_FontMakeChunks()
414 if (len > 0 && utf8len != UTF8_char_len(buf[pos + len - utf8len])) { in R_FontMakeChunks()
415 len -= utf8len; in R_FontMakeChunks()
416 skip += utf8len; in R_FontMakeChunks()
/dports/devel/replxx/replxx-release-0.0.3/examples/
H A Dutil.c3 int utf8str_codepoint_len( char const* s, int utf8len ) { in utf8str_codepoint_len() argument
8 for ( int i = 0; i < utf8len; ++ i, ++ codepointLen ) { in utf8str_codepoint_len()
/dports/math/curv/curv-0.5/extern/replxx/examples/
H A Dutil.c3 int utf8str_codepoint_len( char const* s, int utf8len ) { in utf8str_codepoint_len() argument
8 for ( int i = 0; i < utf8len; ++ i, ++ codepointLen ) { in utf8str_codepoint_len()
/dports/net/uget/uget-2.2.1/uglib/
H A DUgUtil.h62 int* utf8len);
68 int* utf8len);
H A DUgUtil.c181 char* ug_utf16_to_utf8 (const uint16_t* string, int count, int* utf8len)
209 if (utf8len)
210 *utf8len = dest - result;
268 char* ug_ucs4_to_utf8 (const uint32_t* string, int count, int* utf8len)
319 if (utf8len)
320 *utf8len = dest - result;
/dports/misc/lifelines/lifelines-3.1.1/src/stdlib/
H A Dstrutf8.c20 utf8len (char ch) in utf8len() function
47 chwidth = utf8len(*ptr); in str8chlen()
88 tmp = utf8len(*ptr); in find_prev_char()
/dports/lang/newlisp/newlisp-10.7.5/qa-specific-tests/
H A Dqa-utf8-ext11 (if utf8len (utf8len utf8str) " no utf8 version"))
/dports/multimedia/aegisub/aegisub-3.2.2/src/osx/
H A Dscintilla_ime.mm152 auto utf8len = strlen(utf8);
153 stc->AddTextRaw(utf8, utf8len);
155 state.markedRange = NSMakeRange(pos, utf8len);
158 stc->IndicatorFillRange(pos, utf8len);
161 if (!utf8len && state.undoActive)

12345678910>>...19