Home
last modified time | relevance | path

Searched refs:dstlen (Results 1 – 25 of 26) sorted by relevance

12

/reactos/sdk/tools/unicode/
H A Dmbtowc.c61 if (dstlen < srclen) in mbstowcs_sbcs()
64 srclen = dstlen; in mbstowcs_sbcs()
124 if (!dstlen) /* compute length */ in mbstowcs_sbcs_decompose()
132 for (len = dstlen; srclen && len; srclen--, src++) in mbstowcs_sbcs_decompose()
140 return dstlen - len; in mbstowcs_sbcs_decompose()
213 return dstlen - len; in mbstowcs_dbcs()
227 if (!dstlen) /* compute length */ in mbstowcs_dbcs_decompose()
245 for (len = dstlen; srclen && len; srclen--, src++) in mbstowcs_dbcs_decompose()
260 return dstlen - len; in mbstowcs_dbcs_decompose()
267 WCHAR *dst, int dstlen ) in wine_cp_mbstowcs() argument
[all …]
H A Dwctomb.c94 char *dst, unsigned int dstlen ) in wcstombs_sbcs() argument
100 if (dstlen < srclen) in wcstombs_sbcs()
103 srclen = dstlen; in wcstombs_sbcs()
158 char *dst, unsigned int dstlen, in wcstombs_sbcs_slow() argument
216 return dstlen - len; in wcstombs_sbcs_slow()
325 for (len = dstlen; srclen && len; len--, srclen--, src++) in wcstombs_dbcs()
337 return dstlen - len; in wcstombs_dbcs()
343 char *dst, unsigned int dstlen, in wcstombs_dbcs_slow() argument
355 for (len = dstlen; srclen && len; len--, srclen--, src++) in wcstombs_dbcs_slow()
406 return dstlen - len; in wcstombs_dbcs_slow()
[all …]
H A Dfold.c118 int wine_fold_string( int flags, const WCHAR *src, int srclen, WCHAR *dst, int dstlen ) in wine_fold_string() argument
127 if (!dstlen) in wine_fold_string()
130 dstlen = srclen; in wine_fold_string()
136 dstlen += get_ligature_len(*src); in wine_fold_string()
148 return dstlen; in wine_fold_string()
151 if (srclen > dstlen) in wine_fold_string()
154 dstlen -= srclen; in wine_fold_string()
166 if (!dstlen--) in wine_fold_string()
171 if (!dstlen--) in wine_fold_string()
H A Dutf8.c98 int wine_utf8_wcstombs( int flags, const WCHAR *src, int srclen, char *dst, int dstlen ) in wine_utf8_wcstombs() argument
102 if (!dstlen) return get_length_wcs_utf8( flags, src, srclen ); in wine_utf8_wcstombs()
104 for (len = dstlen; srclen; srclen--, src++) in wine_utf8_wcstombs()
157 return dstlen - len; in wine_utf8_wcstombs()
234 WCHAR *dstend = dst + dstlen; in utf8_mbstowcs_compose()
236 if (!dstlen) return get_length_mbs_utf8_compose( flags, src, srclen ); in utf8_mbstowcs_compose()
273 return dstlen - (dstend - dst); in utf8_mbstowcs_compose()
304 int wine_utf8_mbstowcs( int flags, const char *src, int srclen, WCHAR *dst, int dstlen ) in wine_utf8_mbstowcs() argument
308 WCHAR *dstend = dst + dstlen; in wine_utf8_mbstowcs()
312 if (!dstlen) return get_length_mbs_utf8( flags, src, srclen ); in wine_utf8_mbstowcs()
[all …]
H A Dsortkey.c22 extern unsigned int wine_decompose( int flags, WCHAR ch, WCHAR *dst, unsigned int dstlen );
30 int wine_get_sortkey(int flags, const WCHAR *src, int srclen, char *dst, int dstlen) in wine_get_sortkey() argument
81 if (!dstlen) /* compute length */ in wine_get_sortkey()
85 if (dstlen < key_len[0] + key_len[1] + key_len[2] + key_len[3] + 4 + 1) in wine_get_sortkey()
/reactos/dll/win32/kernel32/winnls/string/
H A Dfold.c118 int wine_fold_string( int flags, const WCHAR *src, int srclen, WCHAR *dst, int dstlen ) in wine_fold_string() argument
127 if (!dstlen) in wine_fold_string()
130 dstlen = srclen; in wine_fold_string()
136 dstlen += get_ligature_len(*src); in wine_fold_string()
148 return dstlen; in wine_fold_string()
151 if (srclen > dstlen) in wine_fold_string()
154 dstlen -= srclen; in wine_fold_string()
166 if (!dstlen--) in wine_fold_string()
171 if (!dstlen--) in wine_fold_string()
H A Dlocale.c2328 if (dstlen > 0) in utf7_write_w()
2472 if (!src || !srclen || (!dst && dstlen) || dstlen < 0) in MultiByteToWideChar()
2578 if (dstlen > 0) in utf7_write_c()
2649 if (dstlen > 0 && dest_index + 1 >= dstlen) in utf7_wcstombs()
2698 if (!src || !srclen || (!dst && dstlen) || dstlen < 0) in WideCharToMultiByte()
3286 if (pos < dstlen) in map_to_hiragana()
3310 if (pos < dstlen) in map_to_katakana()
3703 if (dstlen) in lcmap_string()
3927 if (!src || !srclen || dstlen < 0 || (dstlen && !dst) || src == dst) in FoldStringA()
3949 if (ret && dstlen) in FoldStringA()
[all …]
H A Dnls.c1616 if (dstlen > 0) in utf7_write_w()
1618 if (*index >= dstlen) in utf7_write_w()
1660 if (!utf7_write_w(dst, dstlen, &dest_index, '+')) in Utf7ToWideChar()
1839 if (dstlen > 0) in utf7_write_c()
1841 if (*index >= dstlen) in utf7_write_c()
1864 if (!utf7_write_c(dst, dstlen, &dest_index, '+')) in WideCharToUtf7()
1869 if (!utf7_write_c(dst, dstlen, &dest_index, '-')) in WideCharToUtf7()
1878 if (!utf7_write_c(dst, dstlen, &dest_index, *src)) in WideCharToUtf7()
1890 if (!utf7_write_c(dst, dstlen, &dest_index, '+')) in WideCharToUtf7()
1916 if (dstlen > 0 && dest_index + 1 >= dstlen) in WideCharToUtf7()
[all …]
H A Dsortkey.c25 extern unsigned int wine_decompose( WCHAR ch, WCHAR *dst, unsigned int dstlen );
33 int wine_get_sortkey(int flags, const WCHAR *src, int srclen, char *dst, int dstlen) in wine_get_sortkey() argument
84 if (!dstlen) /* compute length */ in wine_get_sortkey()
88 if (dstlen < key_len[0] + key_len[1] + key_len[2] + key_len[3] + 4 + 1) in wine_get_sortkey()
/reactos/dll/win32/wldap32/
H A Dmisc.c239 ULONG CDECL ldap_escape_filter_elementA( PCHAR src, ULONG srclen, PCHAR dst, ULONG dstlen ) in ldap_escape_filter_elementA() argument
243 TRACE( "(%p, 0x%08x, %p, 0x%08x)\n", src, srclen, dst, dstlen ); in ldap_escape_filter_elementA()
248 if (!src || dstlen < len) in ldap_escape_filter_elementA()
272 ULONG CDECL ldap_escape_filter_elementW( PCHAR src, ULONG srclen, PWCHAR dst, ULONG dstlen ) in ldap_escape_filter_elementW() argument
276 TRACE( "(%p, 0x%08x, %p, 0x%08x)\n", src, srclen, dst, dstlen ); in ldap_escape_filter_elementW()
636 int CDECL LdapUnicodeToUTF8( LPCWSTR src, int srclen, LPSTR dst, int dstlen ) in LdapUnicodeToUTF8() argument
638 return WideCharToMultiByte( CP_UTF8, 0, src, srclen, dst, dstlen, NULL, NULL ); in LdapUnicodeToUTF8()
658 int CDECL LdapUTF8ToUnicode( LPCSTR src, int srclen, LPWSTR dst, int dstlen ) in LdapUTF8ToUnicode() argument
660 return MultiByteToWideChar( CP_UTF8, 0, src, srclen, dst, dstlen ); in LdapUTF8ToUnicode()
/reactos/sdk/lib/3rdparty/libmpg123/
H A Dicy2utf8.c381 size_t srclen, dstlen, i, k; in icy2utf8() local
395 dstlen = 0; in icy2utf8()
400 d[dstlen++] = cp1252_utf8[k++]; in icy2utf8()
404 if ((dst = realloc(d, dstlen)) == NULL) { in icy2utf8()
/reactos/sdk/include/host/wine/
H A Dunicode.h106 WCHAR *dst, int dstlen );
109 char *dst, int dstlen, const char *defchar, int *used );
110 extern int wine_cpsymbol_mbstowcs( const char *src, int srclen, WCHAR *dst, int dstlen );
111 extern int wine_cpsymbol_wcstombs( const WCHAR *src, int srclen, char *dst, int dstlen );
112 extern int wine_utf8_mbstowcs( int flags, const char *src, int srclen, WCHAR *dst, int dstlen );
113 extern int wine_utf8_wcstombs( int flags, const WCHAR *src, int srclen, char *dst, int dstlen );
116 extern int wine_get_sortkey( int flags, const WCHAR *src, int srclen, char *dst, int dstlen );
117 extern int wine_fold_string( int flags, const WCHAR *src, int srclen , WCHAR *dst, int dstlen );
/reactos/dll/win32/dbghelp/
H A Dcompat.c239 LPSTR dst, INT dstlen, LPCSTR defchar, BOOL *used ) in __WideCharToMultiByte() argument
243 if (!src || !srclen || (!dst && dstlen)) in __WideCharToMultiByte()
251 if(!dstlen) in __WideCharToMultiByte()
254 for(i=0; i<srclen && i<dstlen; i++) in __WideCharToMultiByte()
264 LPWSTR dst, INT dstlen ) in __MultiByteToWideChar() argument
268 if (!src || !srclen || (!dst && dstlen)) in __MultiByteToWideChar()
276 if(!dstlen) in __MultiByteToWideChar()
279 for(i=0; i<srclen && i<dstlen; i++) in __MultiByteToWideChar()
H A Dcompat.h112 INT __MultiByteToWideChar( UINT page, DWORD flags, LPCSTR src, INT srclen, LPWSTR dst, INT dstlen );
113 INT __WideCharToMultiByte( UINT page, DWORD flags, LPCWSTR src, INT srclen, LPSTR dst, INT dstlen, …
/reactos/modules/rostests/winetests/wininet/
H A Durl.c1187 DWORD dstlen; in InternetCanonicalizeUrl_test() local
1189 dstlen = sizeof(dst); in InternetCanonicalizeUrl_test()
1190 InternetCanonicalizeUrlA(src, dst, &dstlen, 0); in InternetCanonicalizeUrl_test()
1194 dstlen = sizeof(dst); in InternetCanonicalizeUrl_test()
1199 dstlen = sizeof(dst); in InternetCanonicalizeUrl_test()
1200 InternetCanonicalizeUrlA(src, dst, &dstlen, ICU_ESCAPE); in InternetCanonicalizeUrl_test()
1203 dstlen = sizeof(dst); in InternetCanonicalizeUrl_test()
1207 dstlen = sizeof(dst); in InternetCanonicalizeUrl_test()
1211 dstlen = sizeof(dst); in InternetCanonicalizeUrl_test()
1215 dstlen = sizeof(dst); in InternetCanonicalizeUrl_test()
[all …]
/reactos/dll/win32/shlwapi/
H A Dstring.c2692 DWORD WINAPI SHUnicodeToAnsiCP(UINT CodePage, LPCWSTR lpSrcStr, LPSTR lpDstStr, int dstlen) in SHUnicodeToAnsiCP() argument
2698 if (!lpDstStr || !dstlen) in SHUnicodeToAnsiCP()
2718 INT needed = dstlen - 1; in SHUnicodeToAnsiCP()
2740 reqLen = SHTruncateString(mem, dstlen); in SHUnicodeToAnsiCP()
2751 reqLen = WideCharToMultiByte(CodePage, 0, lpSrcStr, len, lpDstStr, dstlen, NULL, NULL); in SHUnicodeToAnsiCP()
2763 reqLen = SHTruncateString(mem, dstlen -1); in SHUnicodeToAnsiCP()
/reactos/sdk/lib/crt/locale/
H A Dlocale.c514 int dstlen, unsigned int codepage, int xflag in __crtLCMapStringA() argument
517 lcid,mapflags,src,srclen,dst,dstlen,codepage,xflag); in __crtLCMapStringA()
521 return LCMapStringA(lcid,mapflags,src,srclen,dst,dstlen); in __crtLCMapStringA()
528 int srclen, wchar_t *dst, int dstlen, unsigned int codepage, int xflag) in __crtLCMapStringW() argument
531 lcid, mapflags, debugstr_w(src), srclen, dst, dstlen, codepage, xflag); in __crtLCMapStringW()
533 return LCMapStringW(lcid, mapflags, src, srclen, dst, dstlen); in __crtLCMapStringW()
/reactos/modules/rostests/winetests/kernel32/
H A Dcodepage.c498 int dstlen; in test_utf7_encoding() member
693 tests[i].dst, tests[i].dstlen, NULL, NULL); in test_utf7_encoding()
739 int dstlen; in test_utf7_decoding() member
965 tests[i].dst, tests[i].dstlen); in test_utf7_decoding()
/reactos/win32ss/printing/providers/localspl/
H A Dprinterdrivers.c16 DWORD dstlen; member
848 apd->dst[apd->dstlen] = '\0'; in apd_copyfile()
976 apd.dstlen = lstrlenW(apd.dst); in myAddPrinterDriverEx()
/reactos/modules/rostests/winetests/ntdll/
H A Denv.c25 static NTSTATUS (WINAPI *pRtlMultiByteToUnicodeN)( LPWSTR dst, DWORD dstlen, LPDWORD reslen,
H A Dpath.c23 static NTSTATUS (WINAPI *pRtlMultiByteToUnicodeN)( LPWSTR dst, DWORD dstlen, LPDWORD reslen,
H A Ddirectory.c51 static NTSTATUS (WINAPI *pRtlMultiByteToUnicodeN)( LPWSTR dst, DWORD dstlen, LPDWORD reslen,
/reactos/dll/win32/ole32/
H A Dcompobj.c1413 static BOOL get_object_dll_path(const struct class_reg_data *regdata, WCHAR *dst, DWORD dstlen) in get_object_dll_path() argument
1421 DWORD dwLength = dstlen * sizeof(WCHAR); in get_object_dll_path()
1425 if (dstlen <= ExpandEnvironmentStringsW(src, dst, dstlen)) ret = ERROR_MORE_DATA; in get_object_dll_path()
1437 lstrcpynW(dst, src, dstlen); in get_object_dll_path()
1451 ret = SearchPathW(NULL, nameW, dllW, dstlen, dst, NULL); in get_object_dll_path()
/reactos/dll/win32/mlang/
H A Dmlang.c2987 INT srclen, dstlen; in fnIMultiLanguage3_ConvertStringInIStream() local
3005 hr = ConvertINetString(pdwMode, dwSrcEncoding, dwDstEncoding, src, &srclen, NULL, &dstlen); in fnIMultiLanguage3_ConvertStringInIStream()
3008 if (!(dst = HeapAlloc(GetProcessHeap(), 0, dstlen))) in fnIMultiLanguage3_ConvertStringInIStream()
3013 hr = ConvertINetString(pdwMode, dwSrcEncoding, dwDstEncoding, src, &srclen, dst, &dstlen); in fnIMultiLanguage3_ConvertStringInIStream()
3016 hr = IStream_Write(pstmOut, dst, dstlen, NULL); in fnIMultiLanguage3_ConvertStringInIStream()
/reactos/sdk/include/reactos/
H A Dshlwapi_undoc.h241 DWORD WINAPI SHUnicodeToAnsiCP(UINT CodePage, LPCWSTR lpSrcStr, LPSTR lpDstStr, int dstlen);

12