Lines Matching refs:dstlen

46 extern int wine_fold_string(int flags, const WCHAR *src, int srclen, WCHAR *dst, int dstlen);
47 extern int wine_get_sortkey(int flags, const WCHAR *src, int srclen, char *dst, int dstlen);
2326 static inline BOOL utf7_write_w(WCHAR *dst, int dstlen, int *index, WCHAR character) in utf7_write_w() argument
2328 if (dstlen > 0) in utf7_write_w()
2330 if (*index >= dstlen) in utf7_write_w()
2350 static int utf7_mbstowcs(const char *src, int srclen, WCHAR *dst, int dstlen) in utf7_mbstowcs() argument
2381 if (!utf7_write_w(dst, dstlen, &dest_index, '+')) in utf7_mbstowcs()
2422 … if (!utf7_write_w(dst, dstlen, &dest_index, (byte_pair >> (offset - 16)) & 0xFFFF)) in utf7_mbstowcs()
2434 if (!utf7_write_w(dst, dstlen, &dest_index, (unsigned char)*src)) in utf7_mbstowcs()
2467 LPWSTR dst, INT dstlen ) in MultiByteToWideChar() argument
2472 if (!src || !srclen || (!dst && dstlen) || dstlen < 0) in MultiByteToWideChar()
2488 ret = wine_cpsymbol_mbstowcs( src, srclen, dst, dstlen ); in MultiByteToWideChar()
2496 ret = utf7_mbstowcs( src, srclen, dst, dstlen ); in MultiByteToWideChar()
2501 ret = wine_cp_mbstowcs( unix_cptable, flags, src, srclen, dst, dstlen ); in MultiByteToWideChar()
2514 ret = wine_utf8_mbstowcs( flags, src, srclen, dst, dstlen ); in MultiByteToWideChar()
2527 ret = wine_cp_mbstowcs( table, flags, src, srclen, dst, dstlen ); in MultiByteToWideChar()
2576 static inline BOOL utf7_write_c(char *dst, int dstlen, int *index, char character) in utf7_write_c() argument
2578 if (dstlen > 0) in utf7_write_c()
2580 if (*index >= dstlen) in utf7_write_c()
2600 static int utf7_wcstombs(const WCHAR *src, int srclen, char *dst, int dstlen) in utf7_wcstombs() argument
2612 if (!utf7_write_c(dst, dstlen, &dest_index, '+')) in utf7_wcstombs()
2614 if (!utf7_write_c(dst, dstlen, &dest_index, '-')) in utf7_wcstombs()
2620 if (!utf7_write_c(dst, dstlen, &dest_index, *src)) in utf7_wcstombs()
2629 if (!utf7_write_c(dst, dstlen, &dest_index, '+')) in utf7_wcstombs()
2638 …if (!utf7_write_c(dst, dstlen, &dest_index, base64_encoding_table[(byte_pair >> (offset - 6)) & 0x… in utf7_wcstombs()
2649 if (dstlen > 0 && dest_index + 1 >= dstlen) in utf7_wcstombs()
2653 … if (!utf7_write_c(dst, dstlen, &dest_index, base64_encoding_table[byte_pair & 0x3F])) in utf7_wcstombs()
2659 if (!utf7_write_c(dst, dstlen, &dest_index, '-')) in utf7_wcstombs()
2693 LPSTR dst, INT dstlen, LPCSTR defchar, BOOL *used ) in WideCharToMultiByte() argument
2698 if (!src || !srclen || (!dst && dstlen) || dstlen < 0) in WideCharToMultiByte()
2720 ret = wine_cpsymbol_wcstombs( src, srclen, dst, dstlen ); in WideCharToMultiByte()
2734 ret = utf7_wcstombs( src, srclen, dst, dstlen ); in WideCharToMultiByte()
2739 ret = wine_cp_wcstombs( unix_cptable, flags, src, srclen, dst, dstlen, in WideCharToMultiByte()
2755 ret = wine_utf8_wcstombs( flags, src, srclen, dst, dstlen ); in WideCharToMultiByte()
2768 ret = wine_cp_wcstombs( table, flags, src, srclen, dst, dstlen, in WideCharToMultiByte()
3268 static int map_to_hiragana(const WCHAR *src, int srclen, WCHAR *dst, int dstlen) in map_to_hiragana() argument
3286 if (pos < dstlen) in map_to_hiragana()
3292 static int map_to_katakana(const WCHAR *src, int srclen, WCHAR *dst, int dstlen) in map_to_katakana() argument
3310 if (pos < dstlen) in map_to_katakana()
3340 static int map_to_halfwidth(DWORD flags, const WCHAR *src, int srclen, WCHAR *dst, int dstlen) in map_to_halfwidth() argument
3357 if (pos < dstlen) in map_to_halfwidth()
3364 if (pos < dstlen) in map_to_halfwidth()
3377 if (pos < dstlen) in map_to_halfwidth()
3380 else if (!dstlen) in map_to_halfwidth()
3384 else if (pos + 1 < dstlen) in map_to_halfwidth()
3399 if (pos < dstlen) in map_to_halfwidth()
3406 static int map_to_fullwidth(const WCHAR *src, int srclen, WCHAR *dst, int dstlen) in map_to_fullwidth() argument
3420 if (pos < dstlen) in map_to_fullwidth()
3427 if (pos < dstlen) in map_to_fullwidth()
3434 if (pos < dstlen) in map_to_fullwidth()
3447 if (pos < dstlen) in map_to_fullwidth()
3458 if (pos < dstlen) in map_to_fullwidth()
3478 if (pos < dstlen) in map_to_fullwidth()
3486 if (pos < dstlen) in map_to_fullwidth()
3493 static int map_to_lowercase(DWORD flags, const WCHAR *src, int srclen, WCHAR *dst, int dstlen) in map_to_lowercase() argument
3501 if (pos < dstlen) in map_to_lowercase()
3508 static int map_to_uppercase(DWORD flags, const WCHAR *src, int srclen, WCHAR *dst, int dstlen) in map_to_uppercase() argument
3516 if (pos < dstlen) in map_to_uppercase()
3564 …ic int map_to_simplified_chinese(DWORD flags, const WCHAR *src, int srclen, WCHAR *dst, int dstlen) in map_to_simplified_chinese() argument
3570 if (pos < dstlen) in map_to_simplified_chinese()
3577 …c int map_to_traditional_chinese(DWORD flags, const WCHAR *src, int srclen, WCHAR *dst, int dstlen) in map_to_traditional_chinese() argument
3583 if (pos < dstlen) in map_to_traditional_chinese()
3590 static int map_remove_ignored(DWORD flags, const WCHAR *src, int srclen, WCHAR *dst, int dstlen) in map_remove_ignored() argument
3610 if (pos < dstlen) in map_remove_ignored()
3617 static int lcmap_string(DWORD flags, const WCHAR *src, int srclen, WCHAR *dst, int dstlen) in lcmap_string() argument
3630 ret = map_to_hiragana(src, srclen, dst, dstlen); in lcmap_string()
3633 ret = map_to_katakana(src, srclen, dst, dstlen); in lcmap_string()
3636 ret = map_to_halfwidth(flags, src, srclen, dst, dstlen); in lcmap_string()
3639 ret = map_to_halfwidth(flags, src, srclen, dst, dstlen); in lcmap_string()
3642 ret = map_to_halfwidth(flags, src, srclen, dst, dstlen); in lcmap_string()
3645 ret = map_to_fullwidth(src, srclen, dst, dstlen); in lcmap_string()
3648 ret = map_to_fullwidth(src, srclen, dst, dstlen); in lcmap_string()
3649 if (dstlen && ret) in lcmap_string()
3650 map_to_hiragana(dst, ret, dst, dstlen); in lcmap_string()
3653 ret = map_to_fullwidth(src, srclen, dst, dstlen); in lcmap_string()
3654 if (dstlen && ret) in lcmap_string()
3655 map_to_katakana(dst, ret, dst, dstlen); in lcmap_string()
3658 ret = map_to_simplified_chinese(flags, src, srclen, dst, dstlen); in lcmap_string()
3661 ret = map_to_traditional_chinese(flags, src, srclen, dst, dstlen); in lcmap_string()
3671 ret = map_remove_ignored(flags, src, srclen, dst, dstlen); in lcmap_string()
3676 ret = map_to_lowercase(flags, src, srclen, dst, dstlen); in lcmap_string()
3682 ret = map_to_uppercase(flags, src, srclen, dst, dstlen); in lcmap_string()
3688 if (dstlen == 0) in lcmap_string()
3693 ret = min(srclen, dstlen); in lcmap_string()
3703 if (dstlen) in lcmap_string()
3706 map_to_lowercase(flags, dst, ret, dst, dstlen); in lcmap_string()
3708 map_to_uppercase(flags, dst, ret, dst, dstlen); in lcmap_string()
3710 map_byterev(dst, min(ret, dstlen), dst); in lcmap_string()
3712 if (dstlen < ret) in lcmap_string()
3743 … WINAPI LCMapStringEx(LPCWSTR locale, DWORD flags, LPCWSTR src, INT srclen, LPWSTR dst, INT dstlen, in LCMapStringEx() argument
3754 if (!src || !srclen || dstlen < 0) in LCMapStringEx()
3763 debugstr_w(locale), flags, debugstr_wn(src, srclen), srclen, dst, dstlen ); in LCMapStringEx()
3773 if (!dstlen) dst = NULL; in LCMapStringEx()
3782 ret = wine_get_sortkey(flags, src, srclen, (char *)dst, dstlen); in LCMapStringEx()
3797 return lcmap_string(flags, src, srclen, dst, dstlen); in LCMapStringEx()
3806 LPWSTR dst, INT dstlen) in LCMapStringW() argument
3809 lcid, flags, debugstr_wn(src, srclen), srclen, dst, dstlen); in LCMapStringW()
3811 return LCMapStringEx(NULL, flags, src, srclen, dst, dstlen, NULL, NULL, 0); in LCMapStringW()
3832 LPSTR dst, INT dstlen) in LCMapStringA() argument
3839 if (!src || !srclen || dstlen < 0) in LCMapStringA()
3869 ret = wine_get_sortkey(flags, srcW, srclenW, dst, dstlen); in LCMapStringA()
3895 ret = WideCharToMultiByte(locale_cp, 0, dstW, dstlenW, dst, dstlen, NULL, NULL); in LCMapStringA()
3922 LPSTR dst, INT dstlen) in FoldStringA() argument
3927 if (!src || !srclen || dstlen < 0 || (dstlen && !dst) || src == dst) in FoldStringA()
3949 if (ret && dstlen) in FoldStringA()
3960 if (!WideCharToMultiByte(CP_ACP, 0, dstW, ret, dst, dstlen, NULL, NULL)) in FoldStringA()
3980 LPWSTR dst, INT dstlen) in FoldStringW() argument
3997 if (!src || !srclen || dstlen < 0 || (dstlen && !dst) || src == dst) in FoldStringW()
4003 ret = wine_fold_string(dwFlags, src, srclen, dst, dstlen); in FoldStringW()