ReactOS 0.4.16-dev-2102-g4cf8777
corecrt_wstring.h File Reference
#include <corecrt.h>
#include <corecrt_malloc.h>
Include dependency graph for corecrt_wstring.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define _CRT_MEMORY_DEFINED
 
#define _wcstok   wcstok
 

Functions

_ACRTIMP void *__cdecl memchr (const void *, int, size_t)
 
_ACRTIMP int __cdecl memcmp (const void *, const void *, size_t)
 
_ACRTIMP void *__cdecl memcpy (void *, const void *, size_t)
 
_ACRTIMP errno_t __cdecl memcpy_s (void *, size_t, const void *, size_t)
 
_ACRTIMP void *__cdecl memset (void *, int, size_t)
 
_ACRTIMP void *__cdecl _memccpy (void *, const void *, int, size_t)
 
_ACRTIMP int __cdecl _memicmp (const void *, const void *, size_t)
 
_ACRTIMP int __cdecl _memicmp_l (const void *, const void *, size_t, _locale_t)
 
static int memicmp (const void *s1, const void *s2, size_t len)
 
static voidmemccpy (void *s1, const void *s2, int c, size_t n)
 
_ACRTIMP void *__cdecl memmove (void *, const void *, size_t)
 
_ACRTIMP wchar_t *__cdecl _wcsdup (const wchar_t *) __WINE_DEALLOC(free) __WINE_MALLOC
 
_ACRTIMP int __cdecl _wcsicmp (const wchar_t *, const wchar_t *)
 
_ACRTIMP int __cdecl _wcsicmp_l (const wchar_t *, const wchar_t *, _locale_t)
 
_ACRTIMP int __cdecl _wcsicoll (const wchar_t *, const wchar_t *)
 
_ACRTIMP int __cdecl _wcsicoll_l (const wchar_t *, const wchar_t *, _locale_t)
 
_ACRTIMP wchar_t *__cdecl _wcslwr (wchar_t *)
 
_ACRTIMP errno_t __cdecl _wcslwr_s (wchar_t *, size_t)
 
_ACRTIMP int __cdecl _wcscoll_l (const wchar_t *, const wchar_t *, _locale_t)
 
_ACRTIMP int __cdecl _wcsncoll (const wchar_t *, const wchar_t *, size_t)
 
_ACRTIMP int __cdecl _wcsncoll_l (const wchar_t *, const wchar_t *, size_t, _locale_t)
 
_ACRTIMP int __cdecl _wcsnicmp (const wchar_t *, const wchar_t *, size_t)
 
_ACRTIMP int __cdecl _wcsnicoll (const wchar_t *, const wchar_t *, size_t)
 
_ACRTIMP int __cdecl _wcsnicoll_l (const wchar_t *, const wchar_t *, size_t, _locale_t)
 
_ACRTIMP size_t __cdecl _wcsnlen (const wchar_t *, size_t)
 
_ACRTIMP wchar_t *__cdecl _wcsnset (wchar_t *, wchar_t, size_t)
 
_ACRTIMP wchar_t *__cdecl _wcsrev (wchar_t *)
 
_ACRTIMP wchar_t *__cdecl _wcsset (wchar_t *, wchar_t)
 
_ACRTIMP wchar_t *__cdecl _wcsupr (wchar_t *)
 
_ACRTIMP errno_t __cdecl _wcsupr_s (wchar_t *, size_t)
 
_ACRTIMP size_t __cdecl _wcsxfrm_l (wchar_t *, const wchar_t *, size_t, _locale_t)
 
_ACRTIMP wchar_t *__cdecl wcscat (wchar_t *, const wchar_t *)
 
_ACRTIMP errno_t __cdecl wcscat_s (wchar_t *, size_t, const wchar_t *)
 
_ACRTIMP wchar_t *__cdecl wcschr (const wchar_t *, wchar_t)
 
_ACRTIMP int __cdecl wcscmp (const wchar_t *, const wchar_t *)
 
_ACRTIMP int __cdecl wcscoll (const wchar_t *, const wchar_t *)
 
_ACRTIMP wchar_t *__cdecl wcscpy (wchar_t *, const wchar_t *)
 
_ACRTIMP errno_t __cdecl wcscpy_s (wchar_t *, size_t, const wchar_t *)
 
_ACRTIMP size_t __cdecl wcscspn (const wchar_t *, const wchar_t *)
 
_ACRTIMP size_t __cdecl wcslen (const wchar_t *)
 
_ACRTIMP wchar_t *__cdecl wcsncat (wchar_t *, const wchar_t *, size_t)
 
_ACRTIMP errno_t __cdecl wcsncat_s (wchar_t *, size_t, const wchar_t *, size_t)
 
_ACRTIMP int __cdecl wcsncmp (const wchar_t *, const wchar_t *, size_t)
 
_ACRTIMP wchar_t *__cdecl wcsncpy (wchar_t *, const wchar_t *, size_t)
 
_ACRTIMP errno_t __cdecl wcsncpy_s (wchar_t *, size_t, const wchar_t *, size_t)
 
_ACRTIMP size_t __cdecl wcsnlen (const wchar_t *, size_t)
 
_ACRTIMP wchar_t *__cdecl wcspbrk (const wchar_t *, const wchar_t *)
 
_ACRTIMP wchar_t *__cdecl wcsrchr (const wchar_t *, wchar_t wcFor)
 
_ACRTIMP size_t __cdecl wcsspn (const wchar_t *, const wchar_t *)
 
_ACRTIMP wchar_t *__cdecl wcsstr (const wchar_t *, const wchar_t *)
 
_ACRTIMP wchar_t *__cdecl wcstok_s (wchar_t *, const wchar_t *, wchar_t **)
 
_ACRTIMP size_t __cdecl wcsxfrm (wchar_t *, const wchar_t *, size_t)
 
_ACRTIMP wchar_t *__cdecl wcstok (wchar_t *, const wchar_t *)
 

Macro Definition Documentation

◆ _CRT_MEMORY_DEFINED

#define _CRT_MEMORY_DEFINED

This file has no copyright assigned and is placed in the Public Domain. This file is part of the Wine project.

Definition at line 17 of file corecrt_wstring.h.

◆ _wcstok

#define _wcstok   wcstok

Definition at line 86 of file corecrt_wstring.h.

Function Documentation

◆ _memccpy()

_ACRTIMP void *__cdecl _memccpy ( void dst,
const void src,
int  c,
size_t  n 
)

Definition at line 3205 of file string.c.

3206{
3207 unsigned char *d = dst;
3208 const unsigned char *s = src;
3209 while (n--) if ((*d++ = *s++) == (unsigned char)c) return d;
3210 return NULL;
3211}
#define NULL
Definition: types.h:112
GLdouble s
Definition: gl.h:2039
GLdouble n
Definition: glext.h:7729
GLenum src
Definition: glext.h:6340
const GLubyte * c
Definition: glext.h:8905
GLenum GLenum dst
Definition: glext.h:6340
#define d
Definition: ke_i.h:81

Referenced by memccpy().

◆ _memicmp()

_ACRTIMP int __cdecl _memicmp ( const void s1,
const void s2,
size_t  len 
)

Definition at line 3485 of file string.c.

3486{
3487 return _memicmp_l(s1, s2, len, NULL);
3488}
int __cdecl _memicmp_l(const void *v1, const void *v2, size_t len, _locale_t locale)
Definition: string.c:3458
GLenum GLsizei len
Definition: glext.h:6722
struct S1 s1
PCWSTR s2
Definition: shell32_main.h:38

Referenced by ata_str_to_mode(), ATL::CRegObject::do_preprocess(), ExpInitializeExecutive(), and memicmp().

◆ _memicmp_l()

_ACRTIMP int __cdecl _memicmp_l ( const void v1,
const void v2,
size_t  len,
_locale_t  locale 
)

Definition at line 3458 of file string.c.

3459{
3460 const char *s1 = v1, *s2 = v2;
3461 int ret = 0;
3462
3463#if _MSVCR_VER == 0 || _MSVCR_VER >= 80
3464 if (!s1 || !s2)
3465 {
3466 if (len)
3468 return len ? _NLSCMPERROR : 0;
3469 }
3470#endif
3471
3472 while (len--)
3473 {
3474 if ((ret = _tolower_l(*s1, locale) - _tolower_l(*s2, locale)))
3475 break;
3476 s1++;
3477 s2++;
3478 }
3479 return ret;
3480}
Definition: _locale.h:75
int CDECL _tolower_l(int c, _locale_t locale)
Definition: ctype.c:532
#define EINVAL
Definition: errno.h:44
#define _NLSCMPERROR
Definition: mbstring.h:28
#define MSVCRT_INVALID_PMT(x, err)
Definition: msvcrt.h:376
return ret
Definition: mutex.c:146
GLfloat GLfloat v1
Definition: glext.h:6062
GLfloat GLfloat GLfloat v2
Definition: glext.h:6063

◆ _wcscoll_l()

_ACRTIMP int __cdecl _wcscoll_l ( const wchar_t str1,
const wchar_t str2,
_locale_t  locale 
)

Definition at line 1990 of file wcs.c.

1991{
1993
1994 if(!locale)
1995 locinfo = get_locinfo();
1996 else
1997 locinfo = locale->locinfo;
1998
1999 if(!locinfo->lc_handle[LC_COLLATE])
2000 return wcscmp(str1, str2);
2002 str1, -1, str2, -1)-CSTR_EQUAL;
2003}
INT WINAPI CompareStringW(LCID lcid, DWORD flags, LPCWSTR str1, INT len1, LPCWSTR str2, INT len2)
Definition: locale.c:4017
#define LC_COLLATE
Definition: locale.h:26
else locinfo
Definition: scanf.h:225
int CDECL wcscmp(const wchar_t *str1, const wchar_t *str2)
Definition: wcs.c:1972
#define get_locinfo()
Definition: winesup.h:25
#define SORT_STRINGSORT
Definition: winnls.h:195
#define CSTR_EQUAL
Definition: winnls.h:500

Referenced by wcscoll().

◆ _wcsdup()

◆ _wcsicmp()

_ACRTIMP int __cdecl _wcsicmp ( const wchar_t str1,
const wchar_t str2 
)

Definition at line 159 of file wcs.c.

160{
161 return _wcsicmp_l(str1, str2, NULL);
162}
INT CDECL _wcsicmp_l(const wchar_t *str1, const wchar_t *str2, _locale_t locale)
Definition: wcs.c:125

Referenced by CFSDropTarget::_CopyItems(), _CreateNonspooledPort(), _DoDLLInjection(), CFSDropTarget::_DoDrop(), _LocalEnumPrintersCheckName(), _LocalGetPrintServerHandleData(), _LocalSetPrintServerHandleData(), _PrinterListCompareRoutine(), _tmain(), AccpOpenNamedObject(), AddCodePage(), AddDialogControl(), AddKeyboardLayouts(), AddOrUpdateHwnd(), CDefaultContextMenu::AddStaticEntry(), ApplyAuditEvents(), ApplyRegistryValues(), ArcMatchTokenU(), assign_main(), AssocQ(), automount_main(), AvrfpFindDuplicateThunk(), AvrfpResolveThunks(), BinaryFileCompare(), BlpDisplayRegisterLocale(), BuildLogListAndFilterList(), BuildParameterArray(), CNewMenu::CacheItems(), ChanMgrGetChannelByName(), CheckForChangedNames(), CheckForDeviceId(), CheckInfFile(), CheckLogOrSourceExistence(), CheckUnattendedSetup(), ChooseGinaUI(), clean_main(), cmdAccounts(), cmdComputer(), cmdConfig(), cmdContinue(), cmdGroup(), cmdHelp(), cmdHelpMsg(), cmdLocalGroup(), cmdPause(), cmdSession(), cmdShare(), cmdStart(), cmdStatistics(), cmdStop(), cmdUse(), cmdUser(), co_UserCreateWindowEx(), compare(), compare_info(), CompareCanonical(), CZipFolder::CompareIDs(), CFontExt::CompareIDs(), CompareInfo(), CompareName(), CHString::CompareNoCase(), CFSFolder::CompareUiStrings(), ConvertAddCmdLine(), CountryEnumProc(), CreateEfiPartition(), CreateExtendedPartition(), CreateFileSystemList(), CreateLogicalPartition(), CreateMsrPartition(), CreatePrimaryPartition(), CreateProfile(), CryptOIDEnumCallback(), CSR_API(), DefaultProcessEntry(), DeletePartition(), DisplayApplet(), DnsIntCacheGetEntryByName(), DnsIntCacheRemoveEntryByName(), DnsIntFlushCacheEntry(), DoesPortExist(), DoParse(), CDeskLinkDropHandler::Drop(), ElfCreateEventLogHandle(), EnableVisualTheme(), EngpHasVgaDriver(), EnumerateConnections(), EnumerateDevices(), EnumerateReactOSEntries(), EnumerateSoundProfiles(), EnumFilesWorker(), EqualFamilyInfo(), FileCopyCallback(), FileOpCallback(), FileSystemToMBRPartitionType(), FileTableCompareWithSameAttributes(), FileTableCompareWithSubsetAttributes(), FillList(), FilterByString(), COpenWithList::Find(), find_actctx_dll(), FindCurrentDriver(), FindDatatype(), FindEnumOption(), FindExpectedFile(), FindFlag(), FindForm(), FindLabelContext(), FindLanguageIndex(), FindLanguageInList(), FindNetworkAdapter(), FindNetworkComponent(), FindOrAppendTheme(), FindPort(), FindPrintMonitor(), FindPrintProcessor(), FindSoundFileInList(), FindSoundProfile(), FindStyle(), FontLink_LoadDefaultCharset(), FormatEx(), FormatFileSystem_UStr(), FormatPartition(), FreeLdrEnumerateBootEntries(), FreeLdrMigrateBootDrivePart(), FsGetVolumeSize(), GdipGetEncoderClsid(), get_mmioFromProfile(), get_type_from_name(), GetAdapterIndexFromNetCfgInstanceId(), GetArgument(), GetDefaultClusterSize(), GetEventSourceByName(), GetFileSystemByName(), GetFontFamilyInfoForSubstitutes(), GetFontPenalty(), GetFriendlyVerb(), CNetConnectionPropertyUi::GetINetCfgComponent(), GetInstallSourceWin32(), GetLargerTimeZoneEntry(), GetLayerInfo(), CWineTest::GetNextFile(), GetOptionType(), GetPrinterDataExA(), GetProcessID(), GetProfileSize(), GetProvider(), GetRootKeyByName(), GetSystemName(), HandleDesktopIniOp(), has_executable_extension(), help_main(), HelpCommand(), HelpCompare(), Imm32WriteImeLayout(), ImmInstallIMEW(), ImportRegistryFile(), ImportSoundLabel(), INetCfgClass_fnFindComponent(), INetCfgComponentBindings_fnIsBoundTo(), InferFileSystemWorker(), IniCacheFindKey(), IniCacheFindSection(), InitAudioDlg(), CLayerUIPropPage::InitFile(), CFontExt::Initialize(), COpenWithMenu::Initialize(), Initialize(), InitializeFileSystemList(), InitializeFormatDriveDlg(), InitializeGlobalJobList(), InputList_Compare(), InputList_FindPreloadKLID(), InsertDefaultClusterSizeForFs(), InstallBootManagerAndBootEntriesWorker(), InstallDriver(), InstallFatBootcodeToPartition(), InstallVBRToPartition(), InstallWindowsNt(), Int_EnumDependentServicesW(), IntAddNameFromFamInfo(), IntCheckForConsoleFileName(), IntConvertFontPaths(), IntDeleteRegFontEntries(), InterpretCmd(), InterpretCommand(), IntFontFamilyCompareEx(), IntGdiGetFontResourceInfo(), IntGdiRemoveFontResourceSingle(), IntGetIcdData(), IntTMWFixUp(), IsBinaryExt(), IsBuiltinLayer(), isCmd(), IsConsoleBoot(), IsConsoleShell(), IsFontDotExt(), IsGenericSystemName(), IsInternalCommand(), IsLanguageAvailable(), IsLiveCD(), IsRootDeviceInstanceID(), IsShortcut(), IsSupportedActivePartition(), KspAddObjectCreateItemToList(), KspCreateDeviceReference(), KsServiceBusEnumCreateRequest(), LangCountryEnumProc(), LangCountryEnumProcEx(), LanguageEnumProc(), LanguageEnumProcEx(), CNewMenu::LoadCachedItems(), LoadEventSources(), LoadSettings(), LoadSetupData(), LoadSetupInf(), LoadShellLinkConsoleInfo(), LocalmonOpenPort(), LogfListItemByName(), LogonPageProc(), LsapLookupAccountRightValue(), LsarpLookupPrivilegeDisplayName(), LsarpLookupPrivilegeValue(), MAIN_AutoStart(), MapVerbToCmdId(), CDefaultContextMenu::MapVerbToCmdId(), MatchVerb(), MMixerGetDataByDeviceName(), MMixerGetMixerByName(), MMSYS_InstallDevice(), MoveKey(), MsvpCheckWorkstations(), NetStatisticsGet(), NtfsDirFindFile(), NtfsGrabFCBFromTable(), NtUserMessageCall(), OnInitDialog(), CShellLink::OnNotify(), OpenConsoleW(), OpenPrintProcessor(), ParseArcName(), ParseCmdLine(), ParseCmdline(), ParseDay(), ParseHour(), ParseLogonHours(), ParseReasonCode(), ParseTime(), ParseUnattend(), PathIsEqual(), pBuildFileList(), PlaySound_GetMMIO(), PreprocessUnattend(), PrintGroupHelp(), PrintPartitionData(), ProcessCodePage(), ProcessCommandLine(), ProcessLangEntry(), ProcessPageCompareFunc(), ProcessUnattendSection(), RCreateServiceW(), ReadPortSettings(), RecycleBinGeneric_IsEqualFileIdentity(), RegConnectRegistryW(), RegFindRecurse(), RegFindWalk(), remove_main(), REnumServiceGroupW(), REnumServicesStatusExW(), RtlpHashAtomName(), RunningOnLiveMedium(), SaveColumnSettings(), SaveCustomPath(), ScLookupServiceByServiceName(), ScmCheckDriver(), ScmCreateManagerHandle(), ScmGetDriverStatus(), ScmGetServiceEntryByDisplayName(), ScmGetServiceEntryByName(), ScmGetServiceGroupByName(), ScmGetServiceImageByImagePath(), ScmIsLocalSystemAccount(), ScmIsSameServiceAccount(), ScmSetServiceGroup(), SdbFindFirstNamedTag(), SdbGetMatchingExe(), SdbpMatchFileAttributes(), SdbpMatchLayer(), SearchDriverRecursive(), SelectDisk(), SelectNode(), SetConsoleCodePage(), setid_main(), SetModeCommand(), SetupStartPage(), SetUserEnvironment(), SetUserEnvironmentVariable(), SetVolumeCallback(), SHELL32_GetDllFromRundll32CommandLine(), SHELL_FindExecutable(), ShowParallelStatus(), SIC_CompareEntries(), SmpConfigureEnvironment(), SmpConfigureKnownDlls(), SmpConfigureSubSystems(), SmpLoadSubSystemsForMuSession(), SndMixerGetLineByName(), SoundsDlgProc(), START_TEST(), StartDocDlgW(), strlist_find_i(), SubContextCompare(), SuggestKeys(), test_checklinkpath(), test_EnumDirFiles(), test_iconlocation(), test_match_ex(), Test_MetricKey(), Test_SPI_SETBEEP(), Test_SPI_SETMOUSEBUTTONSWAP(), test_stringtable(), test_tcp(), test_udp(), TestCommandLine(), TestInterfaceRegistry(), TestModuleRegistry(), TextFileCompare(), throw(), TranslateName(), ua_wcsicmp(), UniqueIdDisk(), UpdateAddress(), UpdateColumnDataHints(), UpdateDialogLineSliderControl(), UpdateDialogLineSwitchControl(), UpdateDriverForPlugAndPlayDevicesW(), UpdateRegistry(), User32DoImeHelp(), VerifyInteg(), W32TmServiceMain(), wcsicmp(), wmain(), and wWinMain().

◆ _wcsicmp_l()

_ACRTIMP int __cdecl _wcsicmp_l ( const wchar_t str1,
const wchar_t str2,
_locale_t  locale 
)

Definition at line 125 of file wcs.c.

126{
127 _locale_tstruct tmp = {0};
128 wchar_t c1, c2;
129
130 if(!MSVCRT_CHECK_PMT(str1 != NULL) || !MSVCRT_CHECK_PMT(str2 != NULL))
131 return _NLSCMPERROR;
132
133 if(!locale)
135
136 do
137 {
138 c1 = _towlower_l(*str1++, locale);
139 c2 = _towlower_l(*str2++, locale);
140 } while(c1 && (c1 == c2));
141
143 return c1 - c2;
144}
_locale_t CDECL get_current_locale_noalloc(_locale_t locale)
Definition: locale.c:1149
void CDECL free_locale_noalloc(_locale_t locale)
Definition: locale.c:1162
#define MSVCRT_CHECK_PMT(x)
Definition: msvcrt.h:378
wint_t CDECL _towlower_l(wint_t c, _locale_t locale)
Definition: wcs.c:96

Referenced by _wcsicmp().

◆ _wcsicoll()

_ACRTIMP int __cdecl _wcsicoll ( const wchar_t str1,
const wchar_t str2 
)

Definition at line 236 of file wcs.c.

237{
238 return _wcsicoll_l(str1, str2, NULL);
239}
int CDECL _wcsicoll_l(const wchar_t *str1, const wchar_t *str2, _locale_t locale)
Definition: wcs.c:203

Referenced by wcsicoll().

◆ _wcsicoll_l()

_ACRTIMP int __cdecl _wcsicoll_l ( const wchar_t str1,
const wchar_t str2,
_locale_t  locale 
)

Definition at line 203 of file wcs.c.

204{
206
207 if(!locale)
209 else
210 locinfo = locale->locinfo;
211
212 if(!locinfo->lc_handle[LC_COLLATE])
213 {
214 wchar_t c1, c2;
215
216 do
217 {
218 c1 = *str1++;
219 if (c1 >= 'A' && c1 <= 'Z')
220 c1 += 'a' - 'A';
221
222 c2 = *str2++;
223 if (c2 >= 'A' && c2 <= 'Z')
224 c2 += 'a' - 'A';
225 } while(c1 && (c1 == c2));
226 return c1 - c2;
227 }
228
230 str1, -1, str2, -1)-CSTR_EQUAL;
231}
#define NORM_IGNORECASE
Definition: winnls.h:187

Referenced by _wcsicoll().

◆ _wcslwr()

_ACRTIMP wchar_t *__cdecl _wcslwr ( wchar_t str)

Definition at line 489 of file wcs.c.

490{
491 _wcslwr_s_l(str, -1, NULL);
492 return str;
493}
_wcslwr_s_l

◆ _wcslwr_s()

_ACRTIMP errno_t __cdecl _wcslwr_s ( wchar_t str,
size_t  n 
)

Definition at line 472 of file wcs.c.

473{
474 return _wcslwr_s_l(str, n, NULL);
475}

◆ _wcsncoll()

_ACRTIMP int __cdecl _wcsncoll ( const wchar_t str1,
const wchar_t str2,
size_t  count 
)

Definition at line 553 of file wcs.c.

554{
555 return _wcsncoll_l(str1, str2, count, NULL);
556}
int CDECL _wcsncoll_l(const wchar_t *str1, const wchar_t *str2, size_t count, _locale_t locale)
Definition: wcs.c:533
GLuint GLuint GLsizei count
Definition: gl.h:1545

Referenced by test__tcsncoll().

◆ _wcsncoll_l()

_ACRTIMP int __cdecl _wcsncoll_l ( const wchar_t str1,
const wchar_t str2,
size_t  count,
_locale_t  locale 
)

Definition at line 533 of file wcs.c.

535{
537
538 if(!locale)
540 else
541 locinfo = locale->locinfo;
542
543 if(!locinfo->lc_handle[LC_COLLATE])
544 return wcsncmp(str1, str2, count);
546 str1, wcsnlen(str1, count),
547 str2, wcsnlen(str2, count))-CSTR_EQUAL;
548}
size_t CDECL wcsnlen(const wchar_t *s, size_t maxlen)
Definition: wcs.c:2920
int CDECL wcsncmp(const wchar_t *str1, const wchar_t *str2, size_t n)
Definition: wcs.c:518

Referenced by _wcsncoll().

◆ _wcsnicmp()

_ACRTIMP int __cdecl _wcsnicmp ( const wchar_t str1,
const wchar_t str2,
size_t  n 
)

Definition at line 195 of file wcs.c.

196{
197 return _wcsnicmp_l(str1, str2, n, NULL);
198}
INT CDECL _wcsnicmp_l(const wchar_t *str1, const wchar_t *str2, size_t n, _locale_t locale)
Definition: wcs.c:167

Referenced by _IsLegacyPort(), _wcsnicoll(), _wgetenv(), ApiSetResolveToHost(), ArcMatchToken_UStr(), auth_scheme_from_header(), BaseCheckVDM(), BaseGetEnvNameType_U(), BuildNewCommDCB(), CConfiguration::CConfiguration(), CheckTerminalDeviceType(), chm_enumerate_dir(), cmdAccounts(), cmdConfig(), cmdGroup(), cmdLocalGroup(), cmdUser(), CmpOpenHiveFiles(), compare_file_paths(), compare_info(), CompareProductName(), ConvertNtPathToWin32Path(), copy_servername_from_name(), CreateFreeLoaderIniForReactOSAndBootSector(), CreateProcessInternalW(), CreateRedirectedFile(), CSR_API(), date_parse(), DevicePathToDosPath(), DIALOG_SYMBOL_DlgProc(), do_preprocess(), DoParse(), enum_gac_assemblies(), EnumerateDevices(), expand_command(), Ext2IsSpecialSystemFile(), Ext2RegistryQueryCallback(), find_actctx_dll(), FindCheckItem(), FindVerbInDefaultVerbList(), get_content_type(), get_type_from_name(), GetDeviceAndComputerName(), GetFontFamilyInfoForList(), GetSystemName(), GetUsedPorts(), HasPrefix(), HlinkParseDisplayName(), IEWinMain(), InstallEventSource(), InstallParallelPort(), InstallSerialPort(), IntCreateDICW(), IntCreateRegistryPath(), IopSetDeviceInstanceData(), is_local_machine(), isCmdWithArg(), ITS_IParseDisplayNameImpl_ParseDisplayName(), LangCountryEnumProc(), LangCountryEnumProcEx(), LDEVOBJ_pLoadDriver(), LoadBootIni(), LoadBootSettings(), LoadIniFile(), LocalOpenPrinter(), MatchToken(), MimeHtmlProtocolInfo_CombineUrl(), MkParseDisplayName(), MmLoadSystemImage(), MSACM_RegisterAllDrivers(), MSACM_RegisterDriverFromRegistry(), msvcrt_get_flags(), CZipEnumerator::next_unique(), NtPathToDiskPartComponents(), NtUserOpenWindowStation(), parse_encoding_name(), parse_key_name(), parse_mhtml_url(), parse_path(), parse_resource(), ParseCommandLine(), ParseDaysOfWeek(), ParseModes(), ParseStopBits(), path_rootname_cmp(), PathIsDosDevice(), pCDevSettings_OpenDeviceKey(), PrintOSVersion(), ReadFreeldrSection(), rpcrt4_http_internet_connect(), ScmCanonDriverImagePath(), ScmConvertToBootPathName(), SdbpMatchLayer(), SdbUninstallByName(), SelectNode(), SetConsoleCPState(), SetConsoleState(), SetEnv(), SHELL_BuildEnvW(), skip_schema(), SpiParseDeviceInfo(), Test_GetDisplayNameOf(), transfer_file_local(), TranslateConsoleName(), TreeView_SetBOOLCheck(), txt_parse_key_name(), update_travellog(), UserGetImeInfoEx(), UserpFormatMessages(), VarDateFromStr(), VarTokenizeFormatString(), VersionInfo32_FindChild(), WaitNamedPipeW(), wcsnicmp(), WinMGMTS_ParseDisplayName(), wmain(), and write_predefined_strings().

◆ _wcsnicoll()

_ACRTIMP int __cdecl _wcsnicoll ( const wchar_t str1,
const wchar_t str2,
size_t  count 
)

Definition at line 282 of file wcs.c.

283{
284 return _wcsnicoll_l(str1, str2, count, NULL);
285}
int CDECL _wcsnicoll_l(const wchar_t *str1, const wchar_t *str2, size_t count, _locale_t locale)
Definition: wcs.c:244

Referenced by test__tcsnicoll().

◆ _wcsnicoll_l()

_ACRTIMP int __cdecl _wcsnicoll_l ( const wchar_t str1,
const wchar_t str2,
size_t  count,
_locale_t  locale 
)

Definition at line 244 of file wcs.c.

246{
248
249 if(!locale)
251 else
252 locinfo = locale->locinfo;
253
254 if(!locinfo->lc_handle[LC_COLLATE])
255 {
256 wchar_t c1, c2;
257
258 if (!count)
259 return 0;
260
261 do
262 {
263 c1 = *str1++;
264 if (c1 >= 'A' && c1 <= 'Z')
265 c1 += 'a' - 'A';
266
267 c2 = *str2++;
268 if (c2 >= 'A' && c2 <= 'Z')
269 c2 += 'a' - 'A';
270 } while(--count && c1 && (c1 == c2));
271 return c1 - c2;
272 }
273
275 str1, wcsnlen(str1, count),
276 str2, wcsnlen(str2, count))-CSTR_EQUAL;
277}

Referenced by _wcsnicoll().

◆ _wcsnlen()

_ACRTIMP size_t __cdecl _wcsnlen ( const wchar_t ,
size_t   
)

◆ _wcsnset()

_ACRTIMP wchar_t *__cdecl _wcsnset ( wchar_t str,
wchar_t  c,
size_t  n 
)

Definition at line 290 of file wcs.c.

291{
292 wchar_t* ret = str;
293 while ((n-- > 0) && *str) *str++ = c;
294 return ret;
295}
#define c
Definition: ke_i.h:80

◆ _wcsrev()

_ACRTIMP wchar_t *__cdecl _wcsrev ( wchar_t str)

Definition at line 324 of file wcs.c.

325{
326 wchar_t* ret = str;
327 wchar_t* end = str + wcslen(str) - 1;
328 while (end > str)
329 {
330 wchar_t t = *end;
331 *end-- = *str;
332 *str++ = t;
333 }
334 return ret;
335}
GLuint GLuint end
Definition: gl.h:1545
GLdouble GLdouble t
Definition: gl.h:2047

Referenced by CHString::MakeReverse(), and wcsrev().

◆ _wcsset()

_ACRTIMP wchar_t *__cdecl _wcsset ( wchar_t str,
wchar_t  c 
)

Definition at line 360 of file wcs.c.

361{
362 wchar_t* ret = str;
363 while (*str) *str++ = c;
364 return ret;
365}

◆ _wcsupr()

_ACRTIMP wchar_t *__cdecl _wcsupr ( wchar_t str)

Definition at line 426 of file wcs.c.

427{
428 return _wcsupr_l(str, NULL);
429}
_wcsupr_l

◆ _wcsupr_s()

_ACRTIMP errno_t __cdecl _wcsupr_s ( wchar_t str,
size_t  n 
)

Definition at line 409 of file wcs.c.

410{
411 return _wcsupr_s_l( str, n, NULL );
412}
_wcsupr_s_l

◆ _wcsxfrm_l()

_ACRTIMP size_t __cdecl _wcsxfrm_l ( wchar_t dest,
const wchar_t src,
size_t  len,
_locale_t  locale 
)

Definition at line 3048 of file wcs.c.

3050{
3052 int i, ret;
3053
3054 if(!MSVCRT_CHECK_PMT(src)) return INT_MAX;
3055 if(!MSVCRT_CHECK_PMT(dest || !len)) return INT_MAX;
3056
3057 if(len > INT_MAX) {
3058 FIXME("len > INT_MAX not supported\n");
3059 len = INT_MAX;
3060 }
3061
3062 if(!locale)
3063 locinfo = get_locinfo();
3064 else
3065 locinfo = locale->locinfo;
3066
3067 if(!locinfo->lc_handle[LC_COLLATE]) {
3068 wcsncpy(dest, src, len);
3069 return wcslen(src);
3070 }
3071
3072 ret = LCMapStringW(locinfo->lc_handle[LC_COLLATE],
3073 LCMAP_SORTKEY, src, -1, NULL, 0);
3074 if(!ret) {
3075 if(len) dest[0] = 0;
3076 *_errno() = EILSEQ;
3077 return INT_MAX;
3078 }
3079 if(!len) return ret-1;
3080
3081 if(ret > len) {
3082 dest[0] = 0;
3083 *_errno() = ERANGE;
3084 return ret-1;
3085 }
3086
3087 ret = LCMapStringW(locinfo->lc_handle[LC_COLLATE],
3088 LCMAP_SORTKEY, src, -1, dest, len) - 1;
3089 for(i=ret; i>=0; i--)
3090 dest[i] = ((unsigned char*)dest)[i];
3091 return ret;
3092}
#define FIXME(fmt,...)
Definition: precomp.h:53
INT WINAPI LCMapStringW(LCID lcid, DWORD flags, LPCWSTR src, INT srclen, LPWSTR dst, INT dstlen)
Definition: locale.c:3808
int *CDECL _errno(void)
Definition: errno.c:215
#define ERANGE
Definition: errno.h:55
#define EILSEQ
Definition: errno.h:62
#define INT_MAX
Definition: limits.h:26
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
static char * dest
Definition: rtl.c:135
wcsncpy
#define LCMAP_SORTKEY
Definition: winnls.h:199

Referenced by wcsxfrm().

◆ memccpy()

static void * memccpy ( void s1,
const void s2,
int  c,
size_t  n 
)
inlinestatic

Definition at line 28 of file corecrt_wstring.h.

28{ return _memccpy(s1, s2, c, n); }
_ACRTIMP void *__cdecl _memccpy(void *, const void *, int, size_t)
Definition: string.c:3205

◆ memchr()

_ACRTIMP void *__cdecl memchr ( const void ptr,
int  c,
size_t  n 
)

Definition at line 3308 of file string.c.

3309{
3310 const unsigned char *p = ptr;
3311
3312 for (p = ptr; n; n--, p++) if (*p == (unsigned char)c) return (void *)(ULONG_PTR)p;
3313 return NULL;
3314}
#define ULONG_PTR
Definition: config.h:101
GLfloat GLfloat p
Definition: glext.h:8902
static PVOID ptr
Definition: dispmode.c:27

◆ memcmp()

_ACRTIMP int __cdecl memcmp ( const void ptr1,
const void ptr2,
size_t  n 
)

Definition at line 2802 of file string.c.

2803{
2804 const unsigned char *p1 = ptr1, *p2 = ptr2;
2805 size_t align;
2806 int result;
2807
2808 if (n < sizeof(uint64_t))
2809 return memcmp_bytes(p1, p2, n);
2810
2811 align = -(size_t)p1 & (sizeof(uint64_t) - 1);
2812
2813 if ((result = memcmp_bytes(p1, p2, align)))
2814 return result;
2815
2816 p1 += align;
2817 p2 += align;
2818 n -= align;
2819
2820 return memcmp_blocks(p1, p2, n);
2821}
UINT64 uint64_t
Definition: types.h:77
unsigned int size_t
Definition: corecrt.h:203
static int memcmp_bytes(const void *ptr1, const void *ptr2, size_t n)
Definition: string.c:2765
static int memcmp_blocks(const void *ptr1, const void *ptr2, size_t size)
Definition: string.c:2777
int align(int length, int align)
Definition: dsound8.c:36
GLuint64EXT * result
Definition: glext.h:11304

Referenced by __lexicographical_compare_3way(), _ILHACKCompareSimpleIds(), CMruBase::_IsEqual(), _read_expect_sync_data_len(), _read_request_data(), CRegPropertyBag::_ReadBinary(), _readex_expect_async(), _readex_expect_sync_data_len(), _send_response_and_wait(), _test_file_name(), _test_hkey_main_Value_A(), _test_hkey_main_Value_W(), _test_stream_read(), _TIFFmemcmp(), _unmarshal_itsf_header(), _unmarshal_itsp_header(), _unmarshal_lzxc_control_data(), _unmarshal_pmgi_header(), _unmarshal_pmgl_header(), _wsetlocale_set_cat(), AboutProtocol_Start(), AcceptDataConnection(), ACMStream_fnRead(), ACMStream_fnSetFormat(), ACMWrapper_SetMediaType(), AcpiEvaluateObject(), AcpiExDoLogicalOp(), AcpiRsMatchVendorResource(), AcpiTbCompareTables(), AcpiTbFindTable(), AdapterFindByHardwareAddress(), add_id3_text(), addr_eq(), adns__procdgram(), alloc_importfile(), alloc_msft_importinfo(), append_file_test(), arbfp_blit_type_compare(), ata_check_unit(), AVIDec_SetMediaType(), AVIFILE_FormatsEqual(), BLOBComp(), bridgeif_fdb_get_dst_ports(), bridgeif_fdb_update_src(), BtrFsMatchDirItemName(), cache_container_is_valid(), cache_get(), Pane::calc_widths(), ccf_options(), CDecodeHashMsg_VerifyHash(), CDecodeMsg_SaveAlgorithmID(), CertCompareCertificateName(), CertCompareIntegerBlob(), CertComparePublicKeyInfo(), check_backup_boot(), check_banner(), check_binary_file_data(), check_bits(), check_blob(), check_bom(), check_bstr(), check_dir(), check_exe(), check_file_matches(), check_font(), check_gif_format(), check_output_raw(), check_param(), check_pkt(), check_pkt_fuzzy(), check_png_format(), check_prev_session(), check_reg_multi(), check_rr_dates(), check_safearray(), check_storage_contents(), check_StretchBlt_stretch(), check_StretchDIBits_stretch(), check_superblock_checksum(), check_updates(), check_vertex_components(), checkCRLHash(), checkHash(), CheckROSAgainstWinAndPrintResult(), chm_resolve_object(), BtrfsRecv::cmd_clone(), cmp_iid(), CmpGetBiosDate(), cmpStrAW(), char_traits< char >::compare(), compare_addrinfo(), compare_addrinfow(), compare_bits(), compare_blob_(), compare_cache(), compare_cert_by_cert_id(), compare_cert_by_md5_hash(), compare_cert_by_sha1_hash(), compare_cert_by_signature_hash(), compare_cms_signer_info(), compare_crl_issued_by(), compare_ctl_by_md5_hash(), compare_ctl_by_sha1_hash(), compare_ctl_existing(), compare_dist_point_name(), compare_elements(), compare_file2(), compare_file_(), compare_file_data(), compare_files(), compare_font(), compare_line(), compare_metadata(), compare_pf_data(), compare_RtlIpv6StringToAddressExW(), compare_RtlIpv6StringToAddressW(), compare_signer_info(), compare_sortkeys(), compare_string(), compareAltNameEntry(), compareCTLInfo(), compareFiles(), CompareFunc(), CNtObjectFolder::CompareIDs(), CRegistryFolder::CompareIDs(), CNetworkConnections::CompareIDs(), CRegFolder::CompareIDs(), CCommonFolder< TSelf, TItemId, TExtractIcon >::CompareName(), compareNameValues(), comparePublicKeyInfo(), comparer(), compareSMimeCapabilities(), CompareStorageDuids(), compareStore(), ComponentInfo_Compare(), compound_encode_send_decode(), context_find_fbo_entry(), convert_input_data(), create_body_offset_list(), create_locinfo(), CreateIconFromResourceEx(), CRYPT_IsCertificateSelfSigned(), CRYPT_ReadSerializedStore(), CryptCATAdminEnumCatalogFromHash(), CryptSIPGetSignedDataMsg(), CryptSIPPutSignedDataMsg(), CryptSIPRetrieveSubjectGuid(), ctl2_alloc_string(), ctl2_find_guid(), CURSORICON_LoadFromFileW(), ddraw_match_surface_desc(), declaration_equals(), decodeAndCompareBase64_A(), decodeBase64WithLenFmtW(), deleg_fh_cmp(), deleg_stateid_cmp(), delete_cache(), delete_hash_entry(), DeleteGptPartition(), deref_cmp(), detect_compression_type(), device_assign(), deviceid_compare(), DGifOpen(), dhcpack(), dhcpnak(), dhcpoffer(), DIB_GetBitmapInfo(), disk_check_notify(), DnsRecordCompare(), BtrfsRecv::do_recv(), do_test_about_protocol(), DocObjectService_FireBeforeNavigate2(), DoImport(), DoOpenFile(), DoParseFile(), DrawDibDraw(), DSPROPERTY_DescriptionW(), dwarf2_init_zsection(), editor_get_selection_para_fmt(), elf_load_cb(), elf_map_file(), encode_compare_base64_W(), enum_devices_callback(), enum_emf_proc(), enum_metafile_proc(), enum_stream_names(), env_get_valueW(), ept_map(), EqualDomainSid(), eto_emf_enum_proc(), exercizeServer(), expect_layeronly_imp(), Ext2VerifyVolume(), ext4_extract_xattr_name(), ext4_xattr_item_alloc(), ext4_xattr_item_cmp(), ext4_xattr_lookup_item(), fdi_mem_write(), file_hash_matches(), file_matches_data(), find_arb_pshader(), find_cc_var(), find_data(), ShellDirectory::find_entry(), find_ept_entry(), find_glsl_domain_shader(), find_glsl_geometry_shader(), find_glsl_pshader(), find_guid_index(), find_product(), find_prop_in_property(), find_sortguid(), find_substring(), find_subtable_with_diffs(), find_subtable_with_offsets(), FindAcpiBios(), FindFilterItem(), FindGUID(), FindNextVolumeW(), FindPxeStructure(), FixupDll(), FPropContainsProp(), ftGdiGetGlyphOutline(), FTP_ReceiveResponse(), GdipIsMatrixEqual(), generate_xa_rr_attributes(), get_cache_glyph_widths(), get_compsysproduct_uuid(), get_cookie_domain(), get_emfplus_header_proc(), get_file_data(), get_gif_loopcount(), get_resource_section(), get_tz_bias(), CRegTreeOptions::GetCheckState(), getDataType(), GetShellSecurityDescriptor(), getwinmetafilebits(), gl_extension_supported(), Global_InStrRev(), handle_cb_sequence(), handle_insert_comment(), has_png_transparency_chunk(), hash_lookup(), hash_matches_blob(), HTMLEvents_Invoke(), HtmlHelpW(), HttpHeaders_test(), IAssemblyNameImpl_IsEqual(), IAVIStream_fnSetFormat(), icb_ptr(), ICMStream_fnSetFormat(), ICO_ExtractIconExW(), IEILIsEqual(), ILGetConnection(), image_locate_build_id_target(), image_tiff_filter(), image_xpng_filter(), IMAGEHLP_GetSectionOffset(), init_script_cache(), InternalGetBinaryType(), InternetTimeFromSystemTimeA_test(), InternetTimeFromSystemTimeW_test(), InternetTimeToSystemTimeA_test(), InternetTimeToSystemTimeW_test(), IntFindGlyphCache(), IrotGetObject(), IrotGetTimeOfLastChange(), IrotIsRunning(), IrotRegister(), is_dos_path(), is_dst(), is_expected_variant(), is_identity_fixup(), is_same_file(), IsEmptyGuid(), IsEqualGUID(), ITERATE_RemoveEnvironmentString(), ITERATE_WriteEnvironmentString(), ITypeLib2_Constructor_SLTG(), jpeg_encoder_create_frame(), jpeg_encoder_get_supported_format(), jsstr_cmp_str(), key_prov_info_matches_cert(), layout_entry_compare(), layout_filehandles_cmp(), layout_merge_segments(), layout_update_stateid(), lcid_from_rfc1766(), lexicographical_compare(), link_notify_test(), load_ttf_name_id(), LPropCompareProp(), CDefView::LV_FindItemByPidl(), macho_load_cb(), main(), marshal_STGMEDIUM(), marshal_WdtpInterfacePointer(), match_emf_record(), mbsncat_PerformTests(), mdi_child_wnd_proc_2(), mdi_main_wnd_procA(), mds_commit(), ME_ApplyStyle(), ME_IsCandidateAnURL(), ME_IsFontEqual(), ME_MouseMove(), ME_StreamInText(), MediaSeeking_IsUsingTimeFormat(), mes_proc_header_unmarshal(), module_is_container_loaded(), MPEGSplitter_pre_connect(), mpg123_same_string(), MRUList_Check(), MSACM_FillFormatTagsCB(), MSI_RecordsAreFieldsEqual(), MSVCRT__create_locale(), mxstream_Write(), NBNameCacheWalk(), nbSStat(), ndr64_async_client_call(), ndr64_client_call(), NetBIOSEnumAdapters(), nsPromptService_ConfirmEx(), ntlm_VerifySignature(), NtlmFree(), ObjectFromLresult(), oc_short(), ok_eq_m128i_(), ok_eq_m256i_(), ok_eq_m512i_(), OleConvertOLESTREAMToIStorage(), OleDocumentView_SetRect(), OleObject_DoVerb(), OLEPictureImpl_Load(), one_i64toa_test(), one_i64tow_test(), one_itoa_test(), one_itow_test(), one_ltoa_test(), one_ltow_test(), one_RtlInt64ToUnicodeString_test(), one_RtlIntegerToChar_test(), one_RtlIntegerToUnicodeString_test(), one_RtlLargeIntegerToChar_test(), one_ui64toa_test(), one_ui64tow_test(), one_ultoa_test(), one_ultow_test(), open_file_test(), pa_ptr(), para_set_fmt(), parse_assembly_elem(), parse_displayname(), parse_extension_string(), parse_extern_script(), parse_file(), parse_li(), parse_options(), parse_response(), parse_ul(), Parser_OutputPin_CheckMediaType(), pdb_init(), pe_map_file(), pesection(), png_decoder_get_metadata_blocks(), png_encoder_create_frame(), png_encoder_get_supported_format(), Polygon(), print_elements(), print_something(), ProcessRelocations(), PROFILE_DetectTextEncoding(), PROFILE_Open(), PropVariantCompareEx(), Protocol_Start(), protocol_start(), ProtocolSink_ReportData(), ProtocolSink_ReportProgress(), pstcache_enumerate(), rdssl_sign_ok(), read_expect_async(), read_fat(), read_header(), read_importlib(), read_mapped_resources(), read_pe_importlib(), read_post_data_stream(), read_reply(), read_xx_header(), readconfiggeneric(), readerinput_detectencoding(), readerinput_is_utf8(), recover_stateid_delegation(), recover_stateid_lock(), recover_stateid_open(), replay_validate_args(), res_sec_url_cmp(), ResProtocol_Start(), ResProtocolInfo_ParseUrl(), ropes_cmp(), RosSymCreateFromFile(), RosSymCreateFromMem(), RpcAssoc_GetIdleConnection(), RpcAuthInfo_IsEqual(), RpcQualityOfService_IsEqual(), RPCRT4_find_interface(), rpcrt4_ncacn_http_receive_fragment(), RpcServerAssoc_FindContextHandle(), RpcServerUnregisterIf(), RSAENH_CPVerifySignature(), RtlCompareUnicodeString(), RunningObjectTableImpl_GetObject(), RunningObjectTableImpl_GetTimeOfLastChange(), RunningObjectTableImpl_IsRunning(), SampQueryUserAll(), SampQueryUserInternal1(), SampSetUserPassword(), SamrOpenDomain(), sanity_check(), SdbpAddDatabaseGuid(), SdbpOpenDatabase(), send_file(), server_thread(), setup_tables(), SHAreIconsEqual(), ShowTimeZoneList(), SHPropertyBag_OnIniFile(), SHPropertyBag_OnRegKey(), skip_html_comment(), SOFTPUB_VerifyImageHash(), START_TEST(), StgIsStorageFile(), StgIsStorageILockBytes(), stgmedium_cmp(), StorageImpl_LoadFileHeader(), strcmp_w(), stream_out_para_props(), String_indexOf(), String_lastIndexOf(), strval_eq(), submit_bh_mdl(), SwapSplayLinks(), SystemFunction030(), tally_test_file(), test2(), test_32bit_win(), test_3des(), test_3des112(), test___STRINGTOLD(), test__creat(), test__itoa_s(), test__mbscat_s(), test__mbscpy_s(), test__mbslwr_s(), test__mbsnbcat_s(), test__mbsupr_s(), test__strlwr_s(), test__ultoa_s(), test__wcstombs_s_l(), test_aes(), test_aligned_offset_realloc(), test_aligned_realloc(), Test_ApphelpCheckRunApp(), test_appsearch_reglocator(), test_ARGB_conversion(), test_assembly_name_props_line(), test_autocreation(), test_basic_authentication(), test_basic_import(), test_basic_import_unicode(), test_basic_request(), test_bcm_splitinfo(), test_BCryptGenRandom(), test_bitmap(), test_bitmap_font_glyph_index(), test_bitmap_info(), test_bitmapbits(), test_block_cipher_modes(), test_BrowseWindowInfo(), test_buffer_dc_props(), test_builtinproc(), test_cache_read(), test_calchash(), test_catalog_properties(), test_CertGetNameString_value_(), test_CertStrToNameA(), test_CertStrToNameW(), test_cf_dataobject(), test_clone_mesh(), test_CoInternetParseUrl(), test_collation(), test_color_formats(), test_communication(), test_conformant_array(), test_conformant_string(), test_constant_table(), test_control_procA(), test_convert(), test_ConvertINetUnicodeToMultiByte(), test_CopyBindInfo(), test_CopyFile2(), test_CopyFileA(), test_CopyStgMedium(), Test_CreateFontA(), test_CreateFontIndirect(), test_CreateNamedPipe(), test_createProcessingInstruction(), test_CreateTypeLib(), test_CreateWellKnownSid(), test_cross_effect_handle(), test_CryptBinaryToString(), test_CryptStringToBinary(), test_custom_palette(), test_D3DReadFileToBlob(), test_D3DXSaveSurfaceToFile(), test_data_cache_dib_contents_stream(), test_data_msg_update(), test_db(), test_dbcs_to_widechar(), test_dds_decoder_frame_data(), test_decode(), test_decode_1bpp(), test_decode_24bpp(), test_decode_4bpp(), test_decode_adobe_cmyk(), test_decode_bitfields(), test_decode_msg_get_param(), test_decode_rle4(), test_decode_rle8(), test_decodeAltName(), test_decodeAuthorityKeyId(), test_decodeAuthorityKeyId2(), test_decodeBasicConstraints(), test_decodeBits(), test_decodeCatNameValue(), test_decodeCert(), test_decodeCertPolicies(), test_decodeCertToBeSigned(), test_decodeCMSSignerInfo(), test_decodeCRLDistPoints(), test_decodeCRLToBeSigned(), test_decodeExtensions(), test_decodeInt(), test_decodeNameValue(), test_decodeOCSPBasicResponseInfo(), test_decodeOCSPBasicSignedResponseInfo(), test_decodeOctets(), test_decodePKCSAttribute(), test_decodePKCSAttributes(), test_decodePKCSContentInfo(), test_decodePKCSSignerInfo(), test_decodeRsaPrivateKey(), test_decodeRsaPublicKey(), test_decodeRsaPublicKey_Bcrypt(), test_decodeSequenceOfAny(), test_decodeSPCLink(), test_decodeSPCPEImage(), test_def_itoa(), test_des(), test_dibsections(), test_disassemble_shader(), test_dispinfo(), test_DrawImage(), test_DrawImage_scale(), test_effect_large_address_aware_flag(), test_effect_parameter_block(), test_effect_preshader(), test_effect_preshader_compare_shader_bytecode_(), test_effect_preshader_compare_vconsts_(), test_effect_preshader_op_results_(), test_effect_shared_parameters_compare_vconst_(), test_effect_state_manager(), test_effect_states(), test_effect_unsupported_shader(), test_embedded_nulls(), test_encodeAltName(), test_encodeAuthorityInfoAccess(), test_encodeAuthorityKeyId(), test_encodeAuthorityKeyId2(), test_encodeBasicConstraints(), test_encodeBits(), test_encodeCatMemberInfo(), test_encodeCatNameValue(), test_encodeCert(), test_encodeCertPolicies(), test_encodeCertPolicyConstraints(), test_encodeCertPolicyMappings(), test_encodeCertToBeSigned(), test_encodeCMSSignerInfo(), test_encodeCRLDistPoints(), test_encodeCRLIssuingDistPoint(), test_encodeCRLToBeSigned(), test_encodeCTL(), test_encodeEnhancedKeyUsage(), test_encodeEnumerated(), test_encodeExtensions(), test_encodeInt(), test_encodeName(), test_encodeNameConstraints(), test_encodeNameValue(), test_encodeOCSPRequestInfo(), test_encodeOctets(), test_encodePKCSAttribute(), test_encodePKCSAttributes(), test_encodePKCSContentInfo(), test_encodePKCSSignerInfo(), test_encodePKCSSMimeCapabilities(), test_encodePolicyQualifierUserNotice(), test_encodePublicKeyInfo(), test_encoder_formats(), test_encodeRsaPublicKey(), test_encodeRsaPublicKey_Bcrypt(), test_encodeSequenceOfAny(), test_encodeSPCFinancialCriteria(), test_encodeSPCLink(), test_encodeSPCPEImage(), test_encodeSpOpusInfo(), test_encodeUnicodeName(), test_encodeUnicodeNameValue(), test_encrypt_message(), test_enum_value(), test_enum_vols(), test_EnumChildContainerNames(), test_EnumCodePages(), test_EnumPropNames(), test_export(), test_extra_block(), test_FakeDLL(), test_fdopen(), test_fdsa(), test_fflush(), test_file_inherit(), test_file_inherit_child(), test_file_protocol_url(), test_file_write_read(), test_FileContents1(), test_FileContents2(), test_find_com_redirection(), test_FindFirstVolume(), test_fmtusertypestg(), test_FoldStringW(), test_font_charset(), test_font_metrics(), test_formatrecord_tables(), test_fprintf(), test_fputwc(), test_fwprintf(), test_GdipDrawImagePointRect(), test_GdipGetAllPropertyItems(), test_gen_random(), test_get_atom_name(), test_get_certificate(), test_get_shader_constant_table_ex(), test_get_xml(), test_GetAcceptLanguagesA(), test_GetCharABCWidths(), test_GetColorProfileElement(), test_GetColorProfileFromHandle(), test_GetColorProfileHeader(), test_GetDIBits(), test_GetDIBits_scanlines(), test_GetDIBits_selected_DDB(), test_GetDIBits_selected_DIB(), test_GetDynamicTimeZoneInformation(), test_GetGlyphOutline(), test_GetId(), test_GetMappedFileName(), Test_GetMatchingExe(), test_GetPrivateProfileString(), test_GetPtrAW(), test_GetSetDIBits_rtl(), test_GetStateText(), test_GetTimeZoneInformationForYear(), test_GetUserNameA(), test_GetUserNameW(), test_GetVolumePathNameW(), test_gif_frame_sizes(), test_gif_properties(), test_Global(), test_gradientgetrect(), TEST_GUIDFromStringA(), TEST_GUIDFromStringW(), test_handles(), test_hash_message(), test_hash_msg_get_param(), test_HashData(), test_hashes(), test_HexFromBin(), test_hglobal_storage_stat(), test_hmac(), test_ICGetDisplayFormat(), test_ICSeqCompress(), test_IdnToAscii(), test_IdnToNameprepUnicode(), test_IdnToUnicode(), test_image_load(), test_IMLangConvertCharset(), test_ImmGetCompositionString(), test_import(), test_import_export(), test_import_hmac(), test_import_private(), Test_Importer(), test_IMultiLanguage2_ConvertStringFromUnicode(), test_InitPropVariantFromBuffer(), test_interface_identifier_conversion_failure(), test_iocp_fileio(), test_items(), test_IWinHttpRequest(), test_JapaneseConversion(), test_junction_points(), test_key_derivation(), test_knownFolders(), test_LBS_NODATA(), test_LCMapStringA(), test_load_save_bmp(), test_load_save_emf(), test_load_save_empty_picture(), test_load_save_icon(), test_Loader(), test_LoadStringA(), test_LoadStringW(), test_local_get_atom_name(), test_locale_info(), test_LZCopy(), test_LZRead(), test_mac(), test_makepath_s(), test_marshal_array(), test_marshal_bstr(), test_marshal_BSTR(), test_marshal_CLIPFORMAT(), test_marshal_HBITMAP(), test_marshal_struct(), test_marshal_VARIANT(), test_mbsrev(), test_mbstowcs(), test_md4_ctx(), test_md4hashfunc(), test_md5_ctx(), test_memcpy_s(), test_message_from_string(), test_message_from_string_wide(), test_message_ignore_inserts(), test_message_insufficient_buffer(), test_message_insufficient_buffer_wide(), test_message_invalid_flags(), test_message_invalid_flags_wide(), test_MessageBoxFontTest(), Test_Misc(), test_MsiGetFileHash(), test_MsiGetProductProperty(), test_msirecord(), test_multibyte_to_unicode_translations(), test_mxwriter_characters(), test_NameSpace(), test_navigator(), test_nodeTypedValue(), test_nonconformant_string(), test_NtAtom(), Test_NtGdiDoPalette_GdiPalSetEntries(), test_NtMapViewOfSection(), test_ntncdf(), test_ntncdf_async(), test_NtQueryDirectoryFile(), test_NtQueryDirectoryFile_case(), test_NtQueryLicenseKey(), test_NtQueryValueKey(), test_offset_in_overlapped_structure(), test_OpenFileById(), test_output(), test_overlapped_buffers(), test_para_numbering(), test_PathUnExpandEnvStrings(), test_pbo_functionality(), test_pipes(), test_png_color_formats(), test_pointer_marshal(), Test_ProcessModules(), test_ProcThreadAttributeList(), test_PropCopyMore(), test_property_table(), test_props(), test_PropVariantToBuffer(), test_protocol_url(), test_pseudo_tokens(), test_PSStringFromPropertyKey(), test_put_nodeTypedValue(), test_query_logicalprocex(), test_query_object(), test_QueryFullProcessImageNameW(), test_queryvirtualmemory(), test_raw_decompress(), test_rc2(), test_rc4(), test_read_write(), test_readdirectorychanges(), test_readdirectorychanges_cr(), test_readdirectorychanges_filedir(), test_readfileex_pending(), test_readonlyfile_cab(), test_RealizationInfo(), Test_recv(), test_reg_binary(), test_reg_query_info(), test_RegQueryValueExPerformanceData(), test_response_without_headers(), test_riff_write(), test_rng(), test_RpcIfInqId(), test_RpcServerUseProtseq(), test_rsa_encrypt(), test_rsa_round_trip(), test_rtf(), test_RtlAppendAsciizToString(), test_RtlAppendStringToString(), test_RtlAppendUnicodeStringToString(), test_RtlAppendUnicodeToString(), test_RtlCompressBuffer(), test_RtlDecompressBuffer(), test_RtlDuplicateUnicodeString(), test_RtlInitUnicodeStringEx(), test_RtlIpv6StringToAddress(), test_RtlIpv6StringToAddressEx(), test_RtlIsNameLegalDOS8Dot3(), Test_RtlLcidToLocaleName(), test_RtlQueryPackageIdentity(), test_RtlUnicodeStringToAnsiString(), test_RtlUnicodeToUTF8N(), test_RtlUpperString(), test_RtlUTF8ToUnicodeN(), test_SafeArrayCopyData(), test_save(), test_saxstr(), test_schannel_provider(), test_ScriptGetGlyphABCWidth(), test_ScriptGetLogicalWidths(), test_Sdb(), test_section_access(), test_secure_connection(), test_SecurityManager(), test_SecurityManagerEx2(), test_sequence(), test_set_getsockopt(), test_SetColorProfileElement(), test_SetColorProfileHeader(), test_SetDefaults(), test_SetDIBits(), test_SetDIBits_RLE4(), test_SetDIBits_RLE8(), test_SetDocString(), test_setting_basic_table(), test_SetupAddInstallSectionToDiskSpaceListA(), test_SetupAddSectionToDiskSpaceListA(), test_SetupQueryDrivesInDiskSpaceListA(), test_SetValue(), test_sha2(), test_sha_ctx(), test_SHAnsiToAnsi(), Test_Shimdata(), test_SHUnicodeToUnicode(), test_sid(), test_sign_message(), test_simple_struct_marshal(), test_simpleroundtrip(), test_sip(), test_sip_create_indirect_data(), test_SnmpUtilAsnAnyCpyFree(), test_SnmpUtilOctetsCpyFree(), test_SnmpUtilOidAppend(), test_SnmpUtilOidCpyFree(), test_SnmpUtilVarBindCpyFree(), test_SnmpUtilVarBindListCpyFree(), test_snprintf(), test_SQLGetPrivateProfileString(), test_SQLGetPrivateProfileStringW(), test_SspiPrepareForCredWrite(), test_storage_refcount(), test_StrCatChainW(), test_strcpy_s(), test_StrCpyNXA(), test_StrCpyNXW(), test_streamenum(), test_StreamOnIStream(), test_StreamOnMemory(), test_StreamOnStreamRange(), test_StretchBlt(), test_StretchBlt_stretch(), test_string_data(), test_string_data_process(), test_string_termination(), test_stringtable(), test_StringTableLookUpStringEx(), test_struct_align(), test_StrXXX_overflows(), test_swab(), test_swprintf(), test_SysReAllocStringLen(), test_SystemFunction001(), test_SystemFunction002(), test_SystemFunction003(), test_SystemFunction004(), test_SystemFunction005(), test_SystemFunction006(), test_SystemFunction007(), test_SystemFunction008(), test_SystemFunction009(), test_SystemFunction032(), test_SystemFunction_dec32(), test_SystemFunction_decrypt(), test_SystemFunction_enc32(), test_SystemFunction_encrypt(), test_tiff_properties(), test_towers(), test_transacted_shared(), test_trustee(), test_try_transform(), test_TxSetText(), test_unicode_import(), test_update_semantics(), test_urlcacheA(), test_urlcacheW(), test_URLOpenBlockingStreamW(), test_user_agent(), test_utf7_decoding(), test_utf7_encoding(), test_utf8(), test_utils(), test_UuidCreateSequential(), test_validtypes(), test_VarBstrCat(), test_VarBstrFromI4(), test_VarBstrFromR4(), test_VarFix(), test_varianttoproperty(), test_VarInt(), test_verify_message_hash(), test_VerifySignature(), test_VirtualAllocEx(), test_vsprintf_p(), test_wcscpy_s(), test_wcsncpy(), test_WinHttpAddHeaders(), test_WinHttpSendRequest(), test_WinHttpTimeFromSystemTime(), test_WinHttpTimeToSystemTime(), test_wm_notify_tooltip(), test_write_flush_size(), test_write_registry_values(), test_write_watch(), test_writesource_palette(), Test_WSARecv(), test_XMLHTTP(), testAcquireCertPrivateKey(), testAddCertificateLink(), testAddSerialized(), testCertProperties(), TestClassRedirection(), testCollectionStore(), TestCommandLine(), testCRLProperties(), testCryptHashCert(), testCryptHashCert2(), testDupCert(), testFindCRL(), testFmtId(), testGetAdaptersInfo(), testHashPublicKeyInfo(), testHashToBeSigned(), testIcmpSendEcho(), testIntendedKeyUsage(), testKeyProvInfo(), TestLibDependency(), testMemStore(), testObjTrust(), testPropsHelper(), testQuery(), TestRedirection(), testRegStore(), testSignAndEncodeCert(), testSignSeal(), testTimeEncoding(), text_richtext_filter(), TgaDecoder_Initialize(), TLB_str_memcmp(), TreeListFindItem(), TrustIsCertificateSelfSigned(), try_dsym(), txt_export_class_and_last_write(), update_filter(), update_plugin_window(), UpdateSelection(), UrlCanonicalizeW(), Validate_EmptyShimData_Win10(), Validate_EmptyShimData_Win8(), VarBstrCmp(), verify_commit(), verify_reg_(), verify_write(), verify_xpointers(), verifySig(), vs_args_equal(), Widget_array(), Widget_bstr(), Widget_complex_struct(), Widget_mystruct(), Widget_mystruct_array(), Widget_mystruct_ptr_ptr(), Widget_thin_struct(), wined3d_device_set_clip_plane(), wined3d_device_set_transform(), wined3d_ffp_frag_program_key_compare(), wined3d_ffp_vertex_program_key_compare(), wined3d_sampler_compare(), wined3d_stateblock_capture(), wined3d_texture_apply_sampler_desc(), winhttp_request_Open(), WinHttpCrackUrl_test(), WkstaEnumAdaptersCallback(), WMSFT_append_typedesc(), WNetEnumCachedPasswords(), wprint_name(), write_if_change(), WSAttemptAutodialName(), XboxMemInit(), xmlDictExists(), xmlDictLookup(), and ZSTD_insertBtAndGetAllMatches().

◆ memcpy()

_ACRTIMP void *__cdecl memcpy ( void dst,
const void src,
size_t  n 
)

Definition at line 3197 of file string.c.

3198{
3199 return memmove(dst, src, n);
3200}
#define memmove(s1, s2, n)
Definition: mkisofs.h:881

◆ memcpy_s()

_ACRTIMP errno_t __cdecl memcpy_s ( void dest,
size_t  numberOfElements,
const void src,
size_t  count 
)

Definition at line 779 of file heap.c.

780{
781 TRACE("(%p %Iu %p %Iu)\n", dest, numberOfElements, src, count);
782
783 if(!count)
784 return 0;
785
786 if (!MSVCRT_CHECK_PMT(dest != NULL)) return EINVAL;
787 if (!MSVCRT_CHECK_PMT(src != NULL))
788 {
790 return EINVAL;
791 }
793 {
795 return ERANGE;
796 }
797
799 return 0;
800}
#define MSVCRT_CHECK_PMT_ERR(x, err)
Definition: msvcrt.h:377
static size_t numberOfElements
Definition: string.c:98
#define memset(x, y, z)
Definition: compat.h:39
#define TRACE(s)
Definition: solgame.cpp:4

◆ memicmp()

static int memicmp ( const void s1,
const void s2,
size_t  len 
)
inlinestatic

Definition at line 27 of file corecrt_wstring.h.

27{ return _memicmp(s1, s2, len); }
_ACRTIMP int __cdecl _memicmp(const void *, const void *, size_t)
Definition: string.c:3485

◆ memmove()

_ACRTIMP void *__cdecl memmove ( void dst,
const void src,
size_t  n 
)

Definition at line 3088 of file string.c.

3089{
3090#if defined(__x86_64__) && !defined(__arm64ec__)
3091 return sse2_memmove(dst, src, n);
3092#else
3093 unsigned char *d = dst;
3094 const unsigned char *s = src;
3095 int sh1;
3096
3097#ifdef __i386__
3098 if (sse2_supported)
3099 return sse2_memmove(dst, src, n);
3100#endif
3101
3102 if (!n) return dst;
3103
3104 if ((size_t)dst - (size_t)src >= n)
3105 {
3106 for (; (size_t)d % sizeof(size_t) && n; n--) *d++ = *s++;
3107
3108 sh1 = 8 * ((size_t)s % sizeof(size_t));
3109 if (!sh1)
3110 {
3111 while (n >= sizeof(size_t))
3112 {
3113 *(size_t*)d = *(size_t*)s;
3114 s += sizeof(size_t);
3115 d += sizeof(size_t);
3116 n -= sizeof(size_t);
3117 }
3118 }
3119 else if (n >= 2 * sizeof(size_t))
3120 {
3121 int sh2 = 8 * sizeof(size_t) - sh1;
3122 size_t x, y;
3123
3124 s -= sh1 / 8;
3125 x = *(size_t*)s;
3126 do
3127 {
3128 s += sizeof(size_t);
3129 y = *(size_t*)s;
3130 *(size_t*)d = MERGE(x, sh1, y, sh2);
3131 d += sizeof(size_t);
3132
3133 s += sizeof(size_t);
3134 x = *(size_t*)s;
3135 *(size_t*)d = MERGE(y, sh1, x, sh2);
3136 d += sizeof(size_t);
3137
3138 n -= 2 * sizeof(size_t);
3139 } while (n >= 2 * sizeof(size_t));
3140 s += sh1 / 8;
3141 }
3142 while (n--) *d++ = *s++;
3143 return dst;
3144 }
3145 else
3146 {
3147 d += n;
3148 s += n;
3149
3150 for (; (size_t)d % sizeof(size_t) && n; n--) *--d = *--s;
3151
3152 sh1 = 8 * ((size_t)s % sizeof(size_t));
3153 if (!sh1)
3154 {
3155 while (n >= sizeof(size_t))
3156 {
3157 s -= sizeof(size_t);
3158 d -= sizeof(size_t);
3159 *(size_t*)d = *(size_t*)s;
3160 n -= sizeof(size_t);
3161 }
3162 }
3163 else if (n >= 2 * sizeof(size_t))
3164 {
3165 int sh2 = 8 * sizeof(size_t) - sh1;
3166 size_t x, y;
3167
3168 s -= sh1 / 8;
3169 x = *(size_t*)s;
3170 do
3171 {
3172 s -= sizeof(size_t);
3173 y = *(size_t*)s;
3174 d -= sizeof(size_t);
3175 *(size_t*)d = MERGE(y, sh1, x, sh2);
3176
3177 s -= sizeof(size_t);
3178 x = *(size_t*)s;
3179 d -= sizeof(size_t);
3180 *(size_t*)d = MERGE(x, sh1, y, sh2);
3181
3182 n -= 2 * sizeof(size_t);
3183 } while (n >= 2 * sizeof(size_t));
3184 s += sh1 / 8;
3185 }
3186 while (n--) *--d = *--s;
3187 }
3188 return dst;
3189#endif
3190}
BOOL sse2_supported
Definition: math.c:71
#define MERGE(w1, sh1, w2, sh2)
Definition: string.c:3086
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548

◆ memset()

_ACRTIMP void *__cdecl memset ( void dst,
int  c,
size_t  n 
)

Definition at line 3230 of file string.c.

3231{
3232 typedef uint64_t DECLSPEC_ALIGN(1) unaligned_ui64;
3233 typedef uint32_t DECLSPEC_ALIGN(1) unaligned_ui32;
3234 typedef uint16_t DECLSPEC_ALIGN(1) unaligned_ui16;
3235
3236 uint64_t v = 0x101010101010101ull * (unsigned char)c;
3237 unsigned char *d = (unsigned char *)dst;
3238 size_t a = 0x20 - ((uintptr_t)d & 0x1f);
3239
3240 if (n >= 16)
3241 {
3242 *(unaligned_ui64 *)(d + 0) = v;
3243 *(unaligned_ui64 *)(d + 8) = v;
3244 *(unaligned_ui64 *)(d + n - 16) = v;
3245 *(unaligned_ui64 *)(d + n - 8) = v;
3246 if (n <= 32) return dst;
3247 *(unaligned_ui64 *)(d + 16) = v;
3248 *(unaligned_ui64 *)(d + 24) = v;
3249 *(unaligned_ui64 *)(d + n - 32) = v;
3250 *(unaligned_ui64 *)(d + n - 24) = v;
3251 if (n <= 64) return dst;
3252
3253 n = (n - a) & ~0x1f;
3254 memset_aligned_32(d + a, v, n);
3255 return dst;
3256 }
3257 if (n >= 8)
3258 {
3259 *(unaligned_ui64 *)d = v;
3260 *(unaligned_ui64 *)(d + n - 8) = v;
3261 return dst;
3262 }
3263 if (n >= 4)
3264 {
3265 *(unaligned_ui32 *)d = v;
3266 *(unaligned_ui32 *)(d + n - 4) = v;
3267 return dst;
3268 }
3269 if (n >= 2)
3270 {
3271 *(unaligned_ui16 *)d = v;
3272 *(unaligned_ui16 *)(d + n - 2) = v;
3273 return dst;
3274 }
3275 if (n >= 1)
3276 {
3277 *(uint8_t *)d = v;
3278 return dst;
3279 }
3280 return dst;
3281}
UINT32 uint32_t
Definition: types.h:75
#define DECLSPEC_ALIGN(x)
Definition: corecrt.h:141
unsigned int uintptr_t
Definition: corecrt.h:185
unsigned short uint16_t
Definition: stdint.h:35
unsigned char uint8_t
Definition: stdint.h:33
static void memset_aligned_32(unsigned char *d, uint64_t v, size_t n)
Definition: string.c:3214
const GLdouble * v
Definition: gl.h:2040
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
#define a
Definition: ke_i.h:78
if(dx< 0)
Definition: linetemp.h:194

◆ wcscat()

_ACRTIMP wchar_t *__cdecl wcscat ( wchar_t dst,
const wchar_t src 
)

Definition at line 2560 of file wcs.c.

2561{
2562 wcscpy( dst + wcslen(dst), src );
2563 return dst;
2564}
wcscpy

◆ wcscat_s()

_ACRTIMP errno_t __cdecl wcscat_s ( wchar_t dst,
size_t  elem,
const wchar_t src 
)

Definition at line 2535 of file wcs.c.

2536{
2537 wchar_t* ptr = dst;
2538
2539 if (!dst || elem == 0) return EINVAL;
2540 if (!src)
2541 {
2542 dst[0] = '\0';
2543 return EINVAL;
2544 }
2545
2546 /* seek to end of dst string (or elem if no end of string is found */
2547 while (ptr < dst + elem && *ptr != '\0') ptr++;
2548 while (ptr < dst + elem)
2549 {
2550 if ((*ptr++ = *src++) == '\0') return 0;
2551 }
2552 /* not enough space */
2553 dst[0] = '\0';
2554 return ERANGE;
2555}
static size_t elem
Definition: string.c:71

Referenced by __acrt_report_runtime_error(), _VCrtDbgReportW(), _wcscats(), and _wsetlocale_get_all().

◆ wcschr()

_ACRTIMP wchar_t *__cdecl wcschr ( const wchar_t str,
wchar_t  ch 
)

Definition at line 2964 of file wcs.c.

2965{
2966 do { if (*str == ch) return (WCHAR *)(ULONG_PTR)str; } while (*str++);
2967 return NULL;
2968}
unsigned char ch[4][2]
Definition: console.c:118
__wchar_t WCHAR
Definition: xmlstorage.h:180

◆ wcscmp()

_ACRTIMP int __cdecl wcscmp ( const wchar_t str1,
const wchar_t str2 
)

Definition at line 1972 of file wcs.c.

1973{
1974 while (*str1 && (*str1 == *str2))
1975 {
1976 str1++;
1977 str2++;
1978 }
1979
1980 if (*str1 < *str2)
1981 return -1;
1982 if (*str1 > *str2)
1983 return 1;
1984 return 0;
1985}

Referenced by _CreateNonspooledPort(), _EqualStrings(), _expandlocale(), _FileOpCount(), _FindPort(), _HandleDeletePort(), _LocalGetPrintServerHandleData(), _wcscoll_l(), _WLocale_strcmp(), _wsetlocale(), _wsetlocale_get_all(), _wsetlocale_nolock(), _wsetlocale_set_cat(), AccpGetTrusteeSid(), ACTION_CustomAction(), ACTION_ExecuteAction(), ACTION_HandleStandardAction(), ACTION_PublishProduct(), ACTION_UnpublishProduct(), ActiveScriptSite_GetItemInfo(), add_font_to_fonttbl(), add_wildcard(), AddNewLayout(), AllSysInfo(), AppearancePage_OnInit(), append_productcode(), ApplicationPageCompareFunc(), arrange_record(), AutoStartupApplications(), BadBlockQueryRoutine(), BindCtxImpl_GetObjectIndex(), bIsThemeActive(), build_response_header(), CabinetExtractFile(), CabinetFindNext(), cache_basic_authorization(), cache_InstallAssembly(), cache_QueryAssemblyInfo(), cache_UninstallAssembly(), category_needs_update(), CertEnumSystemStoreLocationCallback(), CFSExtractIcon_CreateInstance(), check_columns(), check_transform_applicable(), check_url_canonicalize(), check_url_combine(), CheckVolume(), CheckWindowClass(), ClassMoniker_IsEqual(), cmdUser(), columns_in_order(), CHString::Compare(), compare_networkoptions(), CompareFunc(), CompareName(), compile_break_statement(), compile_continue_statement(), compile_labelled_statement(), ComputerPageDlgProc(), ConCfgReadUserSettings(), CopyDirectory(), CopyHardwareProfile(), CreateConsoleFontEx(), CControlPanelEnum::CreateCPanelEnumList(), CreateKeyboardLayoutList(), CreateNTPServerList(), dde_connect(), DeleteCustomRoutes(), DeleteHelperCommand(), DeviceIdMatch(), dialog_add_control(), dialog_combobox_update(), dialog_create_radiobutton(), dialog_event_handler(), dialog_find_control(), dialog_find_control_by_type(), dialog_find_font(), dialog_handle_event(), dialog_set_control_condition(), dialog_set_property(), dialog_set_property_event(), dialog_update_controls(), dialog_update_directory_list(), dialog_vcl_add_columns(), Dispatch_GetIDsOfNames(), DisplayStatus(), do_InitialDesktop_child(), do_searchW(), DoAddFilesFromItem(), DoChangePassword(), DoTest(), DoUnlock(), drain_content(), elf_load_debug_info_from_map(), EnumerateReactOSEntries(), EnumFilesWorker(), EnumFuncEx(), env_parse_flags(), eval_strcmp(), event_add_local(), event_add_source(), event_cleanup_subscriptions(), event_end_dialog(), event_remove(), expect_tag_str_imp(), fetch_machine_product(), fetch_user_component(), fetch_user_product(), FileMonikerImpl_ComposeWith(), FileMonikerImpl_Construct(), fill_datafile(), fill_directory(), find_app_settings(), find_builtin_prop(), find_cached_table(), find_filepatch(), find_font_in_fonttbl(), find_item(), find_mime_from_buffer(), find_prop_name(), FindApp(), FindCachedTTFont(), FindLabel(), FindSuitableFont(), FindSuitableFontProc(), FindSymbolicLinkEntry(), function_local_cmp(), get_clr_version(), get_defaulttablecolumns(), get_key_value(), get_method(), get_mime_filter(), get_processor_caption(), get_property_row(), get_table(), get_temp_binary(), get_wine_loader_name(), CSearchBar::GetAddressEditBoxLocations(), GetAliasEntry(), GetClassFile(), GetDirectoryStructure(), GetDirectXVersion(), GetDynamicTimeZoneInformation(), GetIntegerFromSettings(), GetLayoutCount(), GetStringFromSettings(), GetSyncSetting(), GetSystemName(), Global_StrComp(), GROUP_ModifyGroup(), handle_msi_break(), HasSubFolder(), HTTP_HttpEndRequestW(), HTTP_HttpSendRequestW(), HTTP_InsertAuthorization(), HTTP_ParseDate(), HTTP_ParseDateAsAsctime(), HTTP_ParseRfc1123Date(), HTTP_ParseRfc850Date(), ICreateTypeInfo2_fnSetFuncAndParamNames(), identifier_eval(), init_locale(), InitBadBlocks(), InitControl(), InsertNode(), InternetSession_UnregisterMimeFilter(), IRecordInfoImpl_GetField(), IRecordInfoImpl_GetFieldNoCopy(), IRecordInfoImpl_PutField(), IRecordInfoImpl_PutFieldNoCopy(), is_dir_data(), is_equal_textfont_prop_value(), is_known_mime_type(), is_local_machine(), is_matching_identity(), is_valid_xml_space_value(), is_wine_loader(), IsAltTabWindow(), IsDefaultValue(), CTrayWindow::IsDialog(), IsDots(), IsGenericSystemName(), IsLayoutExists(), IsProfileNameInUse(), IsValidConsoleFont2(), ItemMonikerImpl_IsEqual(), iterate_all_classes(), ITERATE_AppSearch(), iterate_patched_component(), ITERATE_PublishComponent(), ITERATE_WriteEnvironmentString(), ITypeLibComp_fnBind(), LanguagePage(), ListDirectory(), ListWndNotifyProc(), load_folder(), LoadBootSettings(), LoadFreeldrSettings(), LoadUsernameHint(), local_ref_cmp(), LocalmonXcvDataPort(), LocalXcvData(), map_shortname_to_schema(), match_strw_attr_imp(), mciSendStringW(), ME_GetCharFormat(), ME_IsFontEqual(), ME_StreamOutRTFCharProps(), merge_type_match(), merge_verify_colnames(), merge_verify_primary_keys(), modify_binary_dlgproc(), modify_dword_dlgproc(), modify_multi_string_dlgproc(), modify_string_dlgproc(), msi_action_is_unique(), MSI_ApplicablePatchXML(), msi_check_patch_applicable(), msi_commit_streams(), MSI_DatabaseExport(), MSI_DatabaseImport(), msi_get_loaded_component(), msi_get_loaded_feature(), msi_get_loaded_file(), msi_get_loaded_folder(), msi_get_target_folder(), MSI_GetProductInfo(), MSI_OpenPackageW(), msi_package_add_info(), msi_parse_command_line(), msi_resolve_source_folder(), msi_resolve_target_folder(), MSI_SetFeatureStateW(), msi_table_apply_transform(), MsiActiveScriptSite_GetItemInfo(), MsiEnumPatchesExW(), MsiGetPatchInfoExW(), MsiGetPatchInfoW(), MsiGetProductInfoExW(), MsiSetFeatureAttributesW(), MsiSetPropertyW(), MsiSourceListGetInfoW(), MsiSourceListSetInfoW(), my_open(), NetIDPage_OnApply(), NPCancelConnection(), NPGetConnection(), NtfsFCBIsRoot(), NtfsGetFCBForFile(), ObCreateObjectType(), ok_keys_(), ok_strings_(), ok_wstr_(), OnApply(), OnTimer(), PageHeap_ParseCmdline(), parse_assembly(), parse_column(), parse_dependent_assembly_elem(), parse_platform(), parse_security_url(), ParseSettings(), pdh_match_path(), PostCabinetMessageCallback(), PrincipalCompare(), process_state_property(), ProcessCodePage(), PropertyStorage_PropNameCompare(), publish_sourcelist(), QueryConfig2W(), CCopyMoveToMenu::QueryContextMenuImpl(), QueryDosDeviceW(), ReadPassword(), recurse_search_directory(), CDeviceView::RecurseFindDevice(), RecursiveRemoveDir(), BtrfsContextMenu::reflink_copy(), ReflinkCopyW(), RefreshListView(), RefreshTreeItem(), RegOpenKeyExW(), remove_duplicate_values(), RenameHardwareProfile(), retrieve_cached_basic_authorization(), ReturnNtProduct(), RpcServerAssoc_GetAssociation(), RtlQueryActivationContextApplicationSettings(), ScanForInfFile(), SdbpMatchExe(), SearchDriverRecursive(), seed_dirs(), seen_dir(), seltree_add_child_features(), SepCleanupLUIDDeviceMapDirectory(), service_main(), service_mainW(), set_content_length(), set_target_path(), SetAutoAdminLogon(), CShellLink::SetIconLocation(), SetIntegerToSettings(), SetKeyboardLayoutName(), CFSFolder::SetNameOf(), CShellLink::SetPath(), SetStringToSettings(), SetupDiOpenDeviceInfoW(), SetupExtractFile(), CDeviceNode::SetupNode(), SetUserGeoID(), show_reflink_paste(), ShowAlias(), ShowInstalledFileSystems(), ShowTimeZoneList(), SoundsDlgProc(), START_TEST(), StorageBaseImpl_CopyChildEntryTo(), StorageBaseImpl_CopyTo(), STRCMP_Evaluate(), strcmp_key(), string_off_equal(), TABLE_add_column(), TABLE_CreateView(), TABLE_Exists(), table_load_transform(), test2(), test__wcslwr_s(), test__wcsupr_s(), test__wenviron(), test_ACListISF_CURRENTDIR(), test_assign(), test_basetypes(), test_callbacks(), test_case_insensitive(), test_collection_content(), test_construction(), test_ConvertGuidToString(), test_copyconstructor(), test_createProcessingInstruction(), Test_Dump(), test_environment_manipulation(), test_ExpectFolders_imp(), Test_File(), test_findOIDInfo(), test_format_object(), test_fprintf(), test_fwprintf(), test_GetDatabaseInformation(), Test_GetTextFaceAliasW(), test_iconlocation(), test_InitPropVariantFromStringVector(), test_interface_identifier_conversion(), test_misc(), test_NameToStrConversionW_(), test_nodeTypedValue(), TEST_PartMatches(), test_PathUndecorate(), test_printf_format(), test_PropVariantToBSTR(), test_PropVariantToString(), test_PropVariantToStringAlloc(), test_PropVariantToVariant(), test_quoted_RDN(), test_Read(), test_RtlQueryTimeZoneInformation(), test_Sid_Null(), Test_SPI_SETDESKWALLPAPER(), Test_StaticVersionInfo(), test_StrFormatByteSizeEx(), test_StrRetToBSTR(), test_swprintf(), test_table(), test_UrlApplyScheme(), test_UrlCanonicalizeW(), test_UrlCombine(), test_UrlEscapeW(), test_UrlGetPart(), test_UrlUnescape(), test_utf8(), test_utf8_argument(), test_VariantToPropVariant(), test_VariantToString(), test_vsnwprintf_s(), test_vswprintf(), test_wcscmp(), test_wcstok(), test_write_ex(), test_XDR_datatypes(), TestClassRedirection(), TestCommandLine(), TestDescription(), TestGetComputerNameEx(), testGetIfTable(), testGetInterfaceInfo(), TestHostName(), TestInitialize(), testLayout(), TestLibDependency(), TestSetCurrentDirectoryW(), TestUninitialized(), TLB_append_str(), TransformView_delete_row(), TransformView_insert_row(), TransformView_set_row(), tzset_from_environment_nolock(), UnaliasCommand(), UnRegisterTypeLib(), UsersPageProc(), VarBoolFromStr(), verify_mru_(), verify_str_imp2(), VerQueryValueW(), VIEW_find_column(), wcscoll(), WICMapSchemaToName(), wmain(), writer_find_ns(), writer_find_ns_current(), WriteRdpFile(), WshShell3_RegWrite(), wWinMain(), xml_elem_cmp(), xmlreader_MoveToAttributeByName(), xmlwriter_WriteAttributeString(), xmlwriter_WriteElementString(), xmlwriter_WriteProcessingInstruction(), and xmlwriter_WriteStartElement().

◆ wcscoll()

_ACRTIMP int __cdecl wcscoll ( const wchar_t str1,
const wchar_t str2 
)

Definition at line 2008 of file wcs.c.

2009{
2010 return _wcscoll_l(str1, str2, NULL);
2011}
int CDECL _wcscoll_l(const wchar_t *str1, const wchar_t *str2, _locale_t locale)
Definition: wcs.c:1990

Referenced by CHString::Collate(), and test__tcscoll().

◆ wcscpy()

_ACRTIMP wchar_t *__cdecl wcscpy ( wchar_t dst,
const wchar_t src 
)

Definition at line 2468 of file wcs.c.

2469{
2470 WCHAR *p = dst;
2471 while ((*p++ = *src++));
2472 return dst;
2473}

◆ wcscpy_s()

_ACRTIMP errno_t __cdecl wcscpy_s ( wchar_t wcDest,
size_t  numElement,
const wchar_t wcSrc 
)

Definition at line 2439 of file wcs.c.

2440{
2441 size_t size = 0;
2442
2443 if(!MSVCRT_CHECK_PMT(wcDest)) return EINVAL;
2444 if(!MSVCRT_CHECK_PMT(numElement)) return EINVAL;
2445
2447 {
2448 wcDest[0] = 0;
2449 return EINVAL;
2450 }
2451
2452 size = wcslen(wcSrc) + 1;
2453
2454 if(!MSVCRT_CHECK_PMT_ERR(size <= numElement, ERANGE))
2455 {
2456 wcDest[0] = 0;
2457 return ERANGE;
2458 }
2459
2460 memmove( wcDest, wcSrc, size*sizeof(WCHAR) );
2461
2462 return 0;
2463}
static const unsigned char *static size_t const wchar_t * wcSrc
Definition: string.c:76

◆ wcscspn()

_ACRTIMP size_t __cdecl wcscspn ( const wchar_t str,
const wchar_t reject 
)

Definition at line 498 of file wcs.c.

499{
500 const wchar_t *ptr;
501 for (ptr = str; *ptr; ptr++) if (wcschr( reject, *ptr )) break;
502 return ptr - str;
503}
#define wcschr
Definition: compat.h:17

Referenced by __lc_wcstolc(), _wsetlocale_nolock(), AddService(), DoParse(), Imm32GetImeLayoutList(), IntLoadKeyboardLayout(), IsValidComputerName(), parse_bcp47(), CHString::SpanExcluding(), StrCSpnW(), and ATL::ChTraitsCRT< _CharType >::StringSpanExcluding().

◆ wcslen()

_ACRTIMP size_t __cdecl wcslen ( const wchar_t str)

Definition at line 2983 of file wcs.c.

2984{
2985 const wchar_t *s = str;
2986 while (*s) s++;
2987 return s - str;
2988}

Referenced by __acrt_get_qualified_locale(), __acrt_report_runtime_error(), __crt_stdio_path_requires_backslash(), __wcserror_s(), __wgetmainargs(), CBandSiteBase::_BuildBandInfo(), _CmdWndProc(), _cputws(), _CreateNonspooledPort(), _dbg_ILGetSTextPointerW(), CFSDropTarget::_DoDrop(), _DumpLevel1PrintProviderInformation(), _expandlocale(), _FileOpCount(), _GetNonspooledPortName(), _Gettnames(), _HandleAddPort(), _HandleConfigureLPTPortCommandOK(), _ILCreate(), _ILCreateCPanelApplet(), _ILCreatePrinterItem(), _ILGetFSPidl(), _LoadResources(), _LocalGetFormLevel1(), _LocalGetFormLevel2(), _LocalGetJobLevel1(), _LocalGetJobLevel2(), _LocalGetMonitorLevel1(), _LocalGetMonitorLevel2(), _LocalGetPrinterDriverLevel1(), _LocalGetPrinterDriverLevel2(), _LocalGetPrinterDriverLevel3(), _LocalGetPrinterDriverLevel4(), _LocalGetPrinterDriverLevel5(), _LocalGetPrinterDriverLevel6(), _LocalGetPrinterDriverLevel8(), _LocalGetPrinterLevel0(), _LocalGetPrinterLevel1(), _LocalGetPrinterLevel2(), _LocalGetPrinterLevel4(), _LocalGetPrinterLevel5(), _LocalmonGetPortLevel1(), _LocalmonGetPortLevel2(), _main(), _MakePrinterSubKey(), _mktemp(), _mktemp_s(), _OpenEnvironment(), FxPkgPdo::_PnpQueryDeviceText(), FxPkgPdo::_PnpQueryId(), _VCrtDbgReportW(), _W_Getdays(), _W_Getmonths(), _wcsdup(), _wcsrev(), _wcsxfrm_l(), _wgetenv(), _wgetenv_s(), _wmakepath(), _wmakepath_s(), _wpopen(), _wsearchenv_s(), _wsetlocale_nolock(), _wsetlocale_set_cat(), _wsplitpath_s(), _wstat64(), _wsystem(), AccpLookupSidByName(), AccpOpenLSAPolicyHandle(), AccpOpenNamedObject(), AckPageDlgProc(), ACTION_RegisterClassInfo(), ACTION_RegisterExtensionInfo(), ACTION_RegisterMIMEInfo(), ACTION_UnregisterClassInfo(), ACTION_UnregisterExtensionInfo(), ACTION_UnregisterMIMEInfo(), add_comserver_record(), add_ifaceps_record(), AddBootStoreEntry(), AddCheckItem(), COpenWithMenu::AddChooseProgramItem(), AddCodepageToRegistry(), AddCommandGroup(), AddCommas(), AddConsoleAliasW(), AddContext(), AddContextCommand(), AddDialogControl(), AddDisplayDevice(), AddEntryToList(), AddEntryToTree(), AddFontsSettingsToRegistry(), AddFullResourcesToList(), AddGroupCommand(), AddInstallationSource(), AddItemToTreeView(), AddKbLayoutsToRegistry(), AddNewEventSource(), AddNewKbLayoutsByLcid(), AddNewLayout(), AddNTOSInstallation(), AddPrintMonitorList(), AddRequirementsToList(), AddServiceToList(), AddSubst(), AddTestToCombo(), AddUninstallKey(), AddUnregisteredProvider(), AddUserProfile(), AddVolumeToList(), AliasCommand(), AllocAndCopyMultiStr(), AllocEventLog(), AllocSplStr(), AllSysInfo(), append_message(), append_string(), AppendDeviceId(), AppendStringToMultiSZ(), AppendSystemFamily(), AppendSystemPostfix(), ApplicationPageRefreshThread(), ApplyChanges(), ApplyOrCancelChanges(), ApplyParameterStringsToMessage(), ArcMatchToken_UStr(), ArcPathNormalize(), ArcPathToNtPath(), assign_main(), AssignDriveLetter(), AssignNextDriveLetter(), AtapiRegCheckParameterValue(), ATL::AtlLoadTypeLib(), ATL::AtlRegisterClassCategoriesHelper(), AuthzInitializeResourceManager(), AutoStartupApplications(), BackupIniFile(), BaseCheckVDM(), BaseCreateVDMEnvironment(), BfLoadFontFile(), BiConvertRegistryDataToElement(), BiOpenKey(), BlAppendBootOptionString(), BlockEnvToEnvironW(), BlpDisplayRegisterLocale(), BmFatalErrorEx(), BmOpenDataStore(), BmpFwGetApplicationDirectoryPath(), BmpFwGetFullPath(), COpenWithDialog::Browse(), build_assembly_dir(), build_assembly_id(), build_clr_surrogate_section(), build_dllredirect_section(), build_expanded_wargv(), build_local_assembly_path(), build_tlib_section(), build_wndclass_section(), BuildCommandLine(), BuildInteractiveProfileBuffer(), BuildUserModeWindowStationName(), BuildVolatileEnvironment(), BuildWorkstationsList(), Bus_PDO_QueryDeviceId(), Bus_PDO_QueryDeviceText(), CabinetExtractFile(), CabinetNormalizePath(), CabinetOpen(), CabinetSetDestinationPath(), CachedGetUserFromSid(), CNewMenu::CacheItems(), CacheLookupResults(), CallBackConvertToAscii(), CDeviceNode::CDeviceNode(), CDevSettings_GetData(), ChangeNtProductType(), ChangePortNumber(), ChangeServiceConfigA(), ChangeServiceConfigW(), ChannelGetDescription(), ChannelGetName(), ChannelSetDescription(), ChannelSetName(), CharToOemW(), CheckForDeviceId(), CheckForValidPEAndVendor(), CheckSectionValid(), CheckStringBuffer(), CheckStringBufferW(), CheckVolume(), ChildWndProc(), Chkdsk(), ClassNameToVersion(), CM_Connect_MachineW(), CM_Create_DevNode_ExW(), cmdline_to_argv(), cmdShare(), cmdUse(), CmpOpenHiveFiles(), common_assert_to_stderr_direct(), compare_info(), CompareProductName(), ComputeStringSize(), Concatenate(), ConcatPathsV(), ConCfgOpenUserSettings(), ConCfgReadUserSettings(), ConCfgWriteUserSettings(), ConPrintfVPaging(), ConPuts(), ConPutsPaging(), CONSOLE_SetInputTextXY(), ConsoleCreateUnicodeString(), ConstructXcvName(), ConvertNtPathToWin32Path(), CopyIpAddrString(), CopyKeyName(), CopyQuerySetIndirectW(), CopySdbToAppPatch(), CopySystemProfile(), CopyTextToClipboard(), create_temp_dir(), create_time_data(), CreateClassDeviceObject(), CreateDirectoryPath(), CreateFilterList(), CreateGroupListRoutine(), CreateInstanceKey(), CreateItem(), CreateJob(), CreateJunction(), CreateLogicalPartition(), CreateMultiSzString(), CreateNestedKey(), CreatePortEntry(), CreatePrimaryMbrPartition(), CreateProcessInternalW(), CreateProfile(), CreateProfileMutex(), CreateRecordForIpAddress(), CreateServiceA(), CreateServiceW(), CreateSidCacheMgr(), CreateStandardProfile(), CreateSymbolicLink(), CreateSymbolicLinkW(), CreateSysMenu(), CreateUserProfileExW(), CRegKeySecurity_fnConstructor(), CriticalDeviceCoInstaller(), CSR_API(), CsrpConnectToServer(), CsrValidateMessageString(), dde_connect(), DefaultProcessEntry(), DeleteDirectory(), DeleteDriveLetter(), DeleteSubst(), DetectNt4SoundDevices(), DeviceIdMatch(), CKsProxy::DeviceInfo(), DeviceIoctlPassive(), DevicePathToDosPath(), devnotify_window_callbackA(), dialog_add_font(), DIALOG_AddFilterItem(), dialog_create(), dialog_create_window(), dialog_dirlist_handler(), Display_DrawText(), Display_GetFullName(), DisplayClassCoinstallers(), DisplayClassProperties(), DisplayDeviceAdvancedProperties(), DisplayDeviceCoinstallers(), DisplayDevicePropertyText(), DisplayDeviceRelations(), DisplayLocalGroup(), DisplayMessage(), DisplayResourceText(), DisplayScreen(), DisplayTitle(), DisplayUser(), DllMain(), DllRegisterServer(), Dns_CreateStringCopy_W(), Dns_GetBufferLengthForStringCopy(), Dns_StringCopy(), DnsIntCacheGetEntries(), DnsQuery_W(), DoChangePassword(), DoInstallFontFile(), DoLogon(), DoParse(), DoSanitizeClipboard(), DoUnlock(), DoValidateShortcutName(), download_file(), DrawTextExWorker(), DriverFilesCallback(), CExeDropHandler::Drop(), DsppLoadFontFile(), DuplicateQuotedString(), DuplicateString(), DuplicateStringW(), DuplicateStringWEx(), DynamicPathCommonPrefixW(), EMFDC_WriteNamedEscape(), Enum(), EnumClientServiceProtocol(), EnumerateDevices(), CNetConnectionManager::EnumerateINetConnections(), EnumerateNetworkAdapter(), CEnumRegRoot::EnumerateNext(), EnumEventsThread(), EnumNamesW(), EnumPrintersA(), EnumPrintProcessorDatatypesW(), EnumPwrSchemes(), EnumWindowsProc(), env_get_valueW(), env_init(), EtfsOpen(), export_hex_data(), export_hex_data_type(), export_value_name(), Ext2IsSpecialSystemFile(), Ext2QueryRegistrySettings(), Ext2RegistryQueryCallback(), FATGetNextDirEntry(), FdoHandleQueryCompatibleId(), FileExtFromFilter(), FileExtractDialogWndProc(), FileIoCopyFileName(), FileIoCopyParentDirectoryPath(), FilenameW2A_FitOrFail(), FilenameW2A_N(), FileQueryFiles(), FillList(), FilterByString(), FilterConnectCommunicationPort(), FilterLoadUnload(), CDesktopFolder::FinalConstruct(), find_actctx_dll(), find_devices(), find_end_of_double_null_terminated_sequence(), FindBootStore(), FindCheckItem(), FindDateSep(), FindNext(), FindProductName(), FindSidInCache(), FitName(), FlatBuf_Arg_WriteString(), font_name_from_file(), FontLink_Chain_Populate(), format_number(), CRegistryFolder::FormatContentsForDisplay(), FormatEx(), FormatEx2(), FormatFileSizeWithBytes(), CRegistryFolder::FormatValueData(), FoundDevice(), fputws(), FreeBT_AddDevice(), FreeBT_GetRegistryDword(), FreeBT_QueryWmiDataBlock(), FreeLdrEnumerateBootEntries(), FreeWlxMprInfo(), FsdGetFsAttributeInformation(), FxCalculateTotalMultiSzStringSize(), GdipGetSupportedFileExtensions(), GenerateDeviceID(), GenerateRandomPassword(), get_comserver_datalen(), get_currency_format(), get_device_pnp_name_guid(), get_ifaceps_datalen(), get_item_path(), get_locale_info(), get_manifest_in_associated_manifest(), get_number_format(), get_path_with_extension(), get_progid_datalen(), get_table(), GetAddrInfoW(), GetAllUsersProfileDirectoryW(), ATL::ChTraitsCRT< _CharType >::GetBaseTypeLength(), GetBIOSValue(), GetClassRegistryHandle(), GetComputerIdentifier(), GetConfigurationData(), GetConnectRequest(), GetConsoleAliasW(), CShellLink::GetCurFile(), GetCurrentHwProfileA(), GetCurrentHwProfileW(), GetDefaultClassServiceName(), GetDefaultLayoutForLocale(), GetDefaultRecycleBin(), GetDefaultUserProfileDirectoryW(), CNetConnectionPropertyUi::GetDeviceInstanceID(), GetDeviceInstanceList(), GetDeviceInstanceListSize(), GetDisplayNameFileAndID(), CDrivesFolder::GetDisplayNameOf(), CFSFolder::GetDisplayNameOf(), CRegFolder::GetDisplayNameOf(), GetDriveNameWithLetter(), GetDriveTypeW(), GetEnvironmentStringsA(), GetEnvironmentStringsW(), GetEUDCTimeStampExW(), GetEventMessage(), GetEventMessageFileDLL(), GetEventUserName(), GetExpandedFilePathName(), RecycleBin5File::GetFileName(), GetFinalPathNameByHandleW(), CExtractIcon::GetIconLocation(), GetInstallSourceWin32(), GetInterfaceFriendlyName(), GetLayoutCount(), GetLayoutName(), GetLcidFromCountry(), GetLcidFromLangCountry(), GetLcidFromLanguage(), GetLineExtentW(), GetListOfTestExes(), GetListViewEntries(), GetLocaleNameFromDefault(), GetLocaleNameFromLangCountry(), GetLocaleNameFromLanguage(), GetLongPathNameW(), GetMappedFileNameA(), GetMessageStringFromDllList(), GetName(), GetOutlineTextMetricsW(), GetOwnerModuleFromTagEntry(), GetPart(), CKsProxy::GetPinName(), GetPortNameWithoutColon(), GetPrinterA(), GetProcessorInformation(), GetProfilesDirectoryW(), GetProfileSize(), CNetConnection::GetProperties(), GetServerTime(), GetServiceDescription(), GetServiceInstanceList(), GetServiceList(), GetShortPathNameW(), GetSMBiosStringW(), GetSupportedCP(), GetSystemName(), GetSystemUserInfo(), GetSystemVersion(), GetTimeZoneListIndex(), GetUnicodeEnvironmentSize(), GetUniqueConnectionName(), GetUsedPorts(), GetUserProfileDirectoryW(), GetVolumeNameForVolumeMountPointW(), GreenPnp(), GROUP_AddGroup(), GuiPasteToTextModeBuffer(), HalpQueryIdFdo(), HalpQueryIdPdo(), HasPrefix(), HDA_PDOQueryId(), HidClassPDO_HandleQueryDeviceId(), I_ScQueryServiceTagInfo(), ILCreateFromNetworkPlaceW(), ILCreateNetConnectItem(), Imm32GetImeLayoutList(), Imm32WriteImeLayout(), INetCfgComponent_fnGetBindName(), INetCfgComponent_fnGetDisplayName(), INetCfgComponent_fnGetHelpText(), INetCfgComponent_fnGetId(), INetCfgComponent_fnGetPnpDevNodeId(), INetCfgComponent_fnSetDisplayName(), INetCfgComponentBindings_fnIsBoundTo(), INetCfgComponentControl_fnApplyRegistryChanges(), INetCfgLock_fnAcquireWriteLock(), INetCfgLock_fnIsWriteLocked(), IniAddSection(), IniCacheSaveByHandle(), IniInsertKey(), InitAmSymbol(), InitDialog(), InitFilterListBox(), CZZWStr::Initialize(), CNetConnection::Initialize(), InitializeDefaultUserLocale(), InitializeFormatDriveDlg(), InitializeFormList(), InitializeMachineInformation(), InitializeNamedEntry(), InitializePortList(), InitializeProfiles(), InitializeProgramFilesDir(), InitializeProvider(), InitializeRecycleBinDlg(), InitializeSetupActionLog(), InitializeSoundBlaster(), InitializeSystemPage(), InitializeTcpipAdvancedDNSDlg(), InitLogs(), InitPmSymbol(), InitPropertiesDlg(), InitPropVariantFromStringVector(), InitTreeViewItems(), InitTTFontCache(), InputList_Add(), InputList_AddInputMethodToUserRegistry(), InputList_Create(), InputList_WriteSubst(), InsertColumnToListView(), CDeviceView::InsertIntoTreeView(), CNewMenu::InsertShellNewItems(), CRichEdit::InsertText(), InsSpacePos(), InsSpacesFmt(), InstallCompositeBattery(), InstallDefaultSystemSoundScheme(), InstallDevice(), InstallDirectoryPage(), InstallDriver(), InstallEventSource(), InstallInfSections(), InstallNetDevice(), InstallOneInterface(), InstallParallelPort(), InstallReactOS(), InstallScreenSaverW(), InstallSerialPort(), InstallSoftwareBusPnpEnumerator(), InstallSoftwareDeviceInterface(), InstallSystemSoundLabels(), InstallSystemSoundSchemeNames(), Int_EnumDependentServicesW(), IntAddConsoleAlias(), IntConvertFontPaths(), IntCreateDICW(), IntDeleteRecursive(), CRegistryFolder::InternalBindToObject(), IntExpungeConsoleCommandHistory(), IntGdiAddFontResourceEx(), IntGdiAddFontResourceSingle(), IntGdiGetFontResourceInfo(), IntGdiRemoveFontResource(), IntGetConsoleAlias(), IntGetConsoleAliases(), IntGetConsoleAliasesLength(), IntGetConsoleCommandHistory(), IntGetConsoleCommandHistoryLength(), IntGetIcdData(), IntLoadKeyboardLayout(), IntPaintDesktop(), IntResolveDesktop(), IntSetConsoleNumberOfCommands(), IntSetConsoleTitle(), IntVideoPortChildQueryId(), InvokeRemoteRegistryPickerDialog(), IopBootLog(), IopCreateArcNamesCd(), IopCreateArcNamesDisk(), IopEnumerateDetectedDevices(), IopFetchConfigurationInformation(), IopFixupDeviceId(), IopGetInterfaceDeviceList(), IopGetParentIdPrefix(), IopInitializeBuiltinDriver(), IopInstallCriticalDevice(), IopLogWorker(), IopOpenInterfaceKey(), IopQueryCompatibleIds(), IopQueryHardwareIds(), IopWriteLogFile(), IoRegisterDeviceInterface(), is_matching_string(), is_mounted_multi_device(), is_root_unc_name(), is_usable_drive_or_unc_root(), is_xmlns_attr(), isCmdWithArg(), ISecurityObjectTypeInfo_fnGetInheritSource(), IsUrlValid(), ITERATE_PublishComponent(), ITERATE_WriteRegistryValues(), KERNELBASE_lstrlenW(), KmtFltSendWStringToDriver(), KmtSendWStringToDriver(), KsCreateBusEnumObject(), KsecGatherEntropyData(), KsGetBusEnumIdentifier(), KsiCreateObjectType(), KspBusQueryReferenceString(), KspCopyCreateRequest(), KspCreateDeviceReference(), KspCreateObjectType(), KspDoReparseForIrp(), KspInstallInterface(), KspQueryId(), LabelWndProc(), LangCountryEnumProc(), LangCountryEnumProcEx(), LanguageEnumProcEx(), LDEVOBJ_bBuildDevmodeList(), LDEVOBJ_pLoadDriver(), LdrpSearchPath(), LibraryLogEvent(), ListDirectory(), ListWndNotifyProc(), load_class(), load_progid(), LoadAllocStringW(), LoadAppInitDlls(), LoadBootIni(), CNewMenu::LoadCachedItems(), LoadDialog(), LoadEventSources(), LoadHelperDll(), LoadIniFile(), LoadInstallableVDD(), LoadLogFile(), LoadShellLinkConsoleInfo(), LoadSystemIni(), LocalAddForm(), locale_replace_separator(), locale_return_reg_string(), LocalmonAddPort(), LocalmonAddPortEx(), LocalmonXcvOpenPort(), LocalOpenPrinter(), LogfAllocAndBuildNewRecord(), LogfCreate(), LogToFile(), lookup_assembly(), lookup_manifest_file(), lookup_winsxs(), LookupNodeByAddr(), LoopRegisterAdapter(), LsapCreateSid(), LsapLookupAccountRightName(), LsarpEnumeratePrivileges(), LsarpLookupPrivilegeName(), lstrlenW(), lstrstri(), MAIN_LoadSettings(), MAIN_ReplaceString(), MAIN_SaveSettings(), MAIN_SetMainWindowTitle(), MainDialogProc(), MainLoop(), MainWnd_OnInstall(), MakeFilter(), MakeQuotedString(), MakeStrRetFromString(), MarshalConnectionInfo(), MatchToken(), MatchWildcard(), CTrayClockWnd::MeasureLines(), MergeStrings(), MiReloadBootLoadedDrivers(), MMixerAddMidiPin(), MMixerAddMixerControl(), MMixerBuildMixerSourceLine(), MMixerCreateDestinationLine(), MMixerGetDeviceName(), MMixerGetMidiDevicePath(), MMixerGetWaveDevicePath(), MMixerInitializeWaveInfo(), MMixerSetGetMuxControlDetails(), MMSYS_InstallDevice(), ModifyStatus(), ModifyValue(), MRUList_DataList_0(), MRUList_DataList_1(), MsgMemorySize(), msi_add_cabinet_stream(), msi_apply_transforms(), msi_create_full_path(), msi_create_table(), msi_create_temp_file(), MSI_InstallPackage(), msi_parse_command_line(), MSI_ProcessMessage(), msi_split_string(), msvcrt_argvtos(), msvcrt_valisttos(), mswBufferAppendStrW(), my_open(), my_retrieve_vol_type(), NamedEscape(), ndisBindMiniportsToProtocol(), NdisReadConfiguration(), NetClassInstaller(), NetGetDCName(), NetIDPage_OnApply(), NetpAllocWStrFromWStr(), NetrJobAdd(), NetrJobEnum(), NetrJobGetInfo(), NetrWkstaGetInfo(), NetUserChangePassword(), CLayerStringList::Next(), CZipEnumerator::next_unique(), NPAddConnection3(), NPCancelConnection(), NPGetConnection(), NpReadAlias(), NpWaitPipe(), NSProviderInfoFromContext(), NSProvidersEnumerationProc(), NtfsDirFindFile(), NtfsGetNameInformation(), NtfsGetStreamInformation(), NtfsMakeAbsoluteFilename(), NtfsMakeFCBFromDirEntry(), NtfsReadFile(), NtfsSetEndOfFile(), NtfsWriteFile(), NtGdiGetTextFaceW(), NtLdrEnumerateBootEntries(), NtlmStructWriteStrW(), NtUserGetKeyNameText(), NtUserGetMonitorInfo(), NtUserGetObjectInformation(), ObjectNameInformationTests(), OnAutoSync(), OnDropFiles(), CShellLink::OnNotify(), OnProfileTypeInit(), OpenLSAPolicyHandle(), OpenSetupInf(), OpenSoundDeviceRegKey(), OpenSoundDriverParametersRegKey(), OpenUserEventLogFile(), OslPrepareTarget(), OutputDebugStringW(), PackStrings(), PaintControl(), CTrayClockWnd::PaintLine(), PaintText(), parse_bcp47(), parse_url_element(), ParseArguments(), ParseAsn(), ParseDaysOfMonth(), ParseDaysOfWeek(), CCommonFolder< TSelf, TItemId, TExtractIcon >::ParseDisplayName(), ParseReasonCode(), ParseResources(), ParseTime(), PathUndecorateW(), pBuildFileList(), pCDevSettings_GetMonitorDevice(), pCDevSettings_GetMonitorName(), pCDevSettings_OpenDeviceKey(), pdo_query_device_id(), PdoHandleQueryInstanceId(), PerfDataGetCommandLine(), pf_output_format_wstr(), PiSetDevNodeText(), PNP_GetClassInstance(), PNP_GetRelatedDeviceInstance(), PNP_RegisterNotification(), PNP_UnregisterDeviceClassAssociation(), PnpEventThread(), BtrfsDeviceAdd::populate_device_tree(), PopulateCustomPathCombo(), PreloadGlobalMessageTable(), PrepareFileCopy(), prepend_str(), Preview_pSaveImageAs(), PRINT_RECORD(), PrintAdapterDescription(), PrintAllJobs(), PrintAllMacros(), PrintHistory(), PrintingThreadProc(), PrintJobDetails(), PrintMacros(), PrintOSVersion(), PrintTag(), process_args(), ProcessCmdLine(), ProcessDeviceClassChangeEvent(), ProcessDisplayRegistry(), CMainWindow::ProcessFileMenu(), ProcessLangEntry(), ProcessLocaleRegistry(), ProcessorSetFriendlyName(), ProcessSetupInf(), ProcessUnattendSection(), profile_items_callback(), PROGRAM_AddProgram(), ProviderEnumerationProc(), PSAMPR_SERVER_NAME_bind(), pSetupDebugPrint(), PSM_PrepareToDraw(), push_xmlns(), CSendToMenu::QueryContextMenu(), CNewMenu::QueryContextMenu(), CShellLink::QueryContextMenu(), QueryDeskCplString(), QueryDeviceInformation(), CInputPin::QueryId(), COutputPin::QueryId(), QuickSearchFindHit(), RChangeServiceConfig2W(), RChangeServiceConfigW(), RCreateServiceW(), rdp_send_logon_info(), ReadFromFile(), ReadParameterValue(), ReadPassword(), ReadPortSettings(), ReadString(), ready_media(), record_stream_name(), RecycleBin5_Create(), BtrfsContextMenu::reflink_copy(), RefreshTreeItem(), RegenerateUserEnvironment(), RegFindRecurse(), RegFindWalk(), register_dll(), RegisterBDAComponent(), RegisterBlueScreenMachineInformation(), RegisterContext(), RegisterHelperDll(), RegisterService(), RegistryInitLunKey(), RegKeyEditPermissions(), RegSetValueW(), CHString::ReleaseBuffer(), remove_main(), RemovePort(), RemoveQuotes(), CNetConnection::Rename(), RenameKey(), RenderHDROP(), REnumDependentServicesA(), REnumDependentServicesW(), REnumServiceGroupW(), REnumServicesStatusA(), REnumServicesStatusExA(), REnumServicesStatusExW(), ReplaceSubstr(), ReplaceSubStr(), ReportToMountMgr(), ResFindDirectoryEntry(), ResolveArcNameManually(), ResolveLocaleName(), ResolveTarget(), RetrieveCurrentModuleNTDirectory(), rewrite_url(), RGetServiceDisplayNameA(), RGetServiceDisplayNameW(), RGetServiceKeyNameA(), RGetServiceKeyNameW(), RpcpAddInterface(), RQueryServiceConfig2A(), RQueryServiceConfig2W(), RQueryServiceConfigA(), RQueryServiceConfigW(), RtlAddAtomToAtomTable(), RtlCreateActivationContext(), RtlCreateUnicodeString(), RtlGetVersion(), RtlInitLargeUnicodeString(), RtlInitUnicodeString(), RtlInitUnicodeStringEx(), RtlInstallFunctionTableCallback(), RtlIpv6AddressToStringA(), RtlpCollapsePath(), RtlQueryActivationContextApplicationSettings(), RtlQueryEnvironmentVariable_U(), RtlQueryInformationActivationContext(), RtlSetEnvironmentVariable(), RtlSetTimeZoneInformation(), RunControlPanelApplet(), RunTestCases(), SacPutString(), CHString::SafeStrlen(), SampCreateDbObject(), SampOpenDbObject(), SampSetupCreateAliasAccount(), SampSetupCreateDomain(), SampSetupCreateGroupAccount(), SampSetupCreateUserAccount(), COpenWithList::SaveApp(), SaveDefaultUserHive(), SaveGeoID(), SaveJob(), SavePropertiesDlg(), SaveSetting(), SaveSettings(), SaveSystemSettings(), SaveUserLocale(), ScanFoldersForDriver(), ScanForInfFile(), ScmCanonDriverImagePath(), ScmControlService(), ScmControlServiceEx(), ScmConvertToBootPathName(), ScmCreateManagerHandle(), ScmCreateNewServiceRecord(), ScmCreateOrReferenceServiceImage(), ScmEncryptPassword(), ScmGetServiceNameFromTag(), ScmLoadDriver(), ScmLogonService(), ScmReadDependencies(), ScmSetFailureActions(), ScmSetServiceGroup(), ScmSetServicePassword(), ScmUnloadDriver(), ScmWriteDependencies(), SdbpMatchLayer(), SdbpStrlen(), SdbRegisterDatabaseEx(), SdbUninstall(), search_directory(), search_dll_path(), SearchDriverRecursive(), sec_out_mcs_data(), SelectNode(), service_main(), service_mainW(), set_registry_entry(), SetAccountsDomainSid(), SetActiveComputerNameToRegistry(), SetAdministratorPassword(), SetAutoAdminLogon(), SetClassId(), SetComputerNameToRegistry(), COpenWithList::SetDefaultHandler(), SetDefaultPrinterW(), SetDesktopBackColor(), SetDeviceDetails(), SetEnvironmentStringsW(), SetFailedInstall(), SetFriendlyUrl(), SetGeoID(), setid_main(), SetLongDateFormat(), CFindFolder::SetNameOf(), CRegFolder::SetNameOf(), SetNewAccountName(), SetNTPServer(), SetParametersValues(), CShellLink::SetPath(), SetPrimaryDomain(), SetShortDateFormat(), SetShortDateSep(), CUIFBalloonWindow::SetText(), SETUP_CreateDevicesList(), SetupDiCreateDeviceInterfaceRegKeyW(), SetupDiGetDriverInfoDetailW(), SetupDiOpenDeviceInterfaceRegKey(), SetupDiOpenDeviceInterfaceW(), SetupInitializeFileLogW(), SetupLdrScanBootDrivers(), SetupQueueCopyWithCab(), SetupQueueDeleteW(), SetupQueueRenameW(), SH_FormatFileSizeWithBytes(), SHELL_ArgifyW(), SHELL_BuildEnvW(), SHELL_CacheComputerDescription(), SHELL_DupSZZ(), SHELL_FindExecutable(), ShowCreateShortcutWizard(), ShowItemError(), ShowPartitionSizeInputBox(), ShowSoundScheme(), ShowStepError(), CUIFToolTip::ShowTip(), SHRegGetCLSIDKeyW(), SIC_IconAppend(), SmpConfigureExcludeKnownDlls(), SmpConfigureObjectDirectories(), SmpConfigureSubSystems(), SmpCreateDynamicEnvironmentVariables(), SockGetTdiName(), SockLoadHelperDll(), SockLoadTransportMapping(), SoftModalMessageBox(), SoundsDlgProc(), SpiStoreSz(), SpiStoreSzInt(), START_TEST(), StartInstaller(), StartNetworkServices(), StartScreenSaver(), StorageCoInstaller(), StoreConnectionInfo(), StrAryCpyHeapAllocWToA(), StrCpyHeapAllocW(), strdupW(), Stream_WriteString(), StreamingDeviceSetupW(), string_to_hex(), ATL::CSimpleStringT< BaseType, t_bMFCDLL >::StringLength(), dbgrpt_char_traits< wchar_t >::StringLength(), StringListAppend(), StrNCatBuff(), StrStrCase(), StrW2AHeapAlloc(), Substitute(), SuggestKeys(), SvchostCharLowerW(), SZZ_GetSize(), test2(), test_child_env(), Test_CommandLine(), test_DataTags(), Test_File(), Test_GetDisplayNameOf(), Test_GetFiles(), test_GetInterfaceName(), Test_IoGetDeviceInterfaces(), test_NameToStrConversionW_(), Test_NetworkShare(), test_NhGetInterfaceNameFromDeviceGuid(), test_NhGetInterfaceNameFromGuid(), test_PropVariantToBSTR(), Test_QueryDosVolumePaths(), Test_QueryPoints(), test_quoted_RDN(), test_Sid_Null(), test_specialhandling(), test_swprintf(), test_UrlApplyScheme(), test_UrlCanonicalizeW(), test_UrlGetPart(), test_UrlUnescape(), test_wcstok(), test_winclassinfo(), test_wstrdate(), test_wstrtime(), TestBuffers(), testCharPrevA(), testCharPrevW(), TestClassRedirection(), TestCommandLine(), TestDefaultLanguage(), TestDescription(), testDynCharPrev(), TestHDROP(), TestMyEventProvider(), TestRelativeNames(), TestUninitialized(), TimeToMsString(), TiWriteErrorLog(), TransformView_add_column(), TransformView_Create(), TransformView_delete_row(), TransformView_set_row(), TranslateMachineInformationXML(), TreeView_SetBOOLCheck(), TreeWndNotifyProc(), TrimDmiStringW(), TrimGuidString(), TrimLeftRightWhitespace(), TrimNulls(), TrimPunctuation(), TUIDisplayStatusMessage(), tzset_from_environment_nolock(), UDFGetCfgParameter(), UnhandledExceptionFilter(), UnicodeToAnsi(), UnicodeToAnsiInPlace(), UniqueIdDisk(), UnloadAppInitDlls(), update_threadlocinfo_category(), UpdateAddress(), UpdateCaretBlinkTimeReg(), UpdateCaretPos(), UpdateDriverForPlugAndPlayDevicesW(), UpdateLanStatus(), UpdateRegistryString(), UpdateStatusBar(), UpdateUsersShellFolderSettings(), UrlCanonicalizeW(), USBAudioInitComponentId(), USBCCGP_PdoAppendInterfaceNumber(), USBCCGP_PdoHandleQueryDeviceText(), USBCCGP_PdoHandleQueryId(), USBH_PdoQueryDeviceText(), USBHUB_DumpingIDs(), USBPORT_DumpingIDs(), USBPORT_PdoPnP(), USBSTOR_HandleQueryProperty(), USBSTOR_PdoHandleQueryInstanceId(), User32DoImeHelp(), UserEnumDisplayDevices(), UserLoadKbdFile(), UserLpkPSMTextOut(), UserpFormatMessages(), UserpGetClientFileName(), UTF8EncodeAndSend(), ValidateDeviceName(), ValidateGuidString(), VariantToString(), verify_str_imp(), VerifyDNSSuffix(), VersionInfo32_QueryValue(), wcscat(), wcscpy_s(), wcsistr_plus(), wcsrep(), wcsrtombs_l(), WCSToMBEx(), wcstombs(), WdmAudGetDeviceInterface(), WdmAudOpenSysAudioDeviceInterfaces(), WdmAudOpenSysAudioDevices(), wenv_get_index(), WhereFindByDirs(), WhereSearchFiles(), WhoamiGroups(), WhoamiPrintHeader(), WhoamiPrintTable(), WhoamiSetTable(), wine_dbgstr_wn(), WinLdrAddDriverToList(), WlanConnect(), WlStrDup(), WlxActivateUserShell(), wmain(), wputenv_helper(), WriteComputerSettings(), WriteDefaultLogonData(), WriteJobShadowFile(), WriteKeysSettings(), WriteOwnerSettings(), WriteParameterArray(), WritePortSettings(), WriteRdpFile(), WriteStartupRecoveryOptions(), WriteStringAt(), WriteToLogPrintfV(), WriteToLogPuts(), WriteUserLocale(), WSPAddressToString(), WSPStringToAddress(), and wWinMain().

◆ wcsncat()

_ACRTIMP wchar_t *__cdecl wcsncat ( wchar_t s1,
const wchar_t s2,
size_t  n 
)

Definition at line 2613 of file wcs.c.

2614{
2615 wchar_t *ret = s1;
2616 while (*s1) s1++;
2617 while (n-- > 0) if (!(*s1++ = *s2++)) return ret;
2618 *s1 = 0;
2619 return ret;
2620}

◆ wcsncat_s()

_ACRTIMP errno_t __cdecl wcsncat_s ( wchar_t dst,
size_t  elem,
const wchar_t src,
size_t  count 
)

Definition at line 2569 of file wcs.c.

2570{
2571 size_t i, j;
2572
2573 if (!MSVCRT_CHECK_PMT(dst != NULL)) return EINVAL;
2574 if (!MSVCRT_CHECK_PMT(elem > 0)) return EINVAL;
2575 if (count == 0) return 0;
2576 if (!MSVCRT_CHECK_PMT(src != NULL))
2577 {
2578 *dst = 0;
2579 return EINVAL;
2580 }
2581
2582 for (i = 0; i < elem; i++) if (!dst[i]) break;
2583
2584 if (i == elem)
2585 {
2586 MSVCRT_INVALID_PMT("dst[elem] is not NULL terminated\n", EINVAL);
2587 *dst = 0;
2588 return EINVAL;
2589 }
2590
2591 for (j = 0; (j + i) < elem; j++)
2592 {
2593 if(count == _TRUNCATE && j + i == elem - 1)
2594 {
2595 dst[j + i] = '\0';
2596 return STRUNCATE;
2597 }
2598 if(j == count || (dst[j + i] = src[j]) == '\0')
2599 {
2600 dst[j + i] = '\0';
2601 return 0;
2602 }
2603 }
2604
2605 MSVCRT_INVALID_PMT("dst[elem] is too small", ERANGE);
2606 dst[0] = '\0';
2607 return ERANGE;
2608}
#define STRUNCATE
Definition: errno.h:64
#define _TRUNCATE
Definition: stdlib.h:45
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint GLint GLint j
Definition: glfuncs.h:250

◆ wcsncmp()

_ACRTIMP int __cdecl wcsncmp ( const wchar_t str1,
const wchar_t str2,
size_t  n 
)

Definition at line 518 of file wcs.c.

519{
520 if (!n)
521 return 0;
522 while(--n && *str1 && (*str1 == *str2))
523 {
524 str1++;
525 str2++;
526 }
527 return *str1 - *str2;
528}

Referenced by _LocalOpenPrinterHandle(), _LocalOpenXcvHandle(), _wcsncoll(), _wcsncoll_l(), _wsetlocale_nolock(), ConCfgReadUserSettings(), CreateFileW(), decode_source(), DEVENUM_IParseDisplayName_ParseDisplayName(), dialog_vcl_add_columns(), DisplayApplet(), DisplayLocalGroup(), DosStart(), env_parse_flags(), RunOnceExEntry::Exec(), find_compression(), find_xmlns(), FindProviderIndex(), get_locale_info(), get_olemisc_value(), get_root_key(), get_type_from_name(), GetSystemName(), GetTypeFromName(), GetVolumeNameForVolumeMountPointW(), GetVolumePathNameW(), HTTP_GetResponseHeaders(), InitSettings(), IopQueryBusDescription(), is_prefixed_disk(), is_xmlns_attr(), LocalOpenPrinter(), MONTHCAL_PaintTitle(), msvcrt_get_flags(), NdisReadConfiguration(), nfs41_MountConfig_ParseOptions(), OleLoadPicturePath(), OSK_SetKeys(), parse_data_type(), parse_file_header(), parse_mhtml_url(), parse_win31_line_state(), ParseCommandLine(), PathGetDriveNumberW(), PciAcpiFindRsdt(), PciGetIrqRoutingTableFromRegistry(), PosInArray(), process_state_property(), QuerySubstedDrive(), NtObjDirectory::read_directory(), RpcStringBindingParseW(), SetDeviceDetails(), start_debugger(), START_TEST(), str_to_number(), StrStrNW(), Test_CommandLine(), test_decodeUnicodeNameValue(), Test_File(), test_GetInterfaceName(), test_NameToStrConversionW_(), test_notify_generic_text_helper(), test_quoted_RDN(), test_Sid_Null(), test_winclassinfo(), TestDefaultCountry(), TestFileFsAttributeInformation(), TestUninitialized(), try_load_library_from_system_directory(), urlcache_entry_commit(), UrlCombineW(), UrlCompareW(), UrlGetLocationW(), VarTokenizeFormatString(), VTUTF8ChannelConsumeEscapeSequence(), WININET_GetAuthRealm(), wmain(), xml_name_cmp(), and xmlstr_cmp().

◆ wcsncpy()

_ACRTIMP wchar_t *__cdecl wcsncpy ( wchar_t s1,
const wchar_t s2,
size_t  n 
)

Definition at line 2478 of file wcs.c.

2479{
2480 size_t i;
2481
2482 for(i=0; i<n; i++)
2483 if(!(s1[i] = s2[i])) break;
2484 for(; i<n; i++)
2485 s1[i] = 0;
2486 return s1;
2487}

◆ wcsncpy_s()

_ACRTIMP errno_t __cdecl wcsncpy_s ( wchar_t dst,
size_t  elem,
const wchar_t src,
size_t  count 
)

Definition at line 2492 of file wcs.c.

2493{
2494 WCHAR *p = dst;
2495 BOOL truncate = (count == _TRUNCATE);
2496
2497 if (!count)
2498 {
2499 if (dst && elem) *dst = 0;
2500 return 0;
2501 }
2502
2503 if (!MSVCRT_CHECK_PMT(dst != NULL)) return EINVAL;
2504 if (!MSVCRT_CHECK_PMT(elem != 0)) return EINVAL;
2505 if (!MSVCRT_CHECK_PMT(src != NULL))
2506 {
2507 *dst = 0;
2508 return EINVAL;
2509 }
2510
2511 while (elem && count && *src)
2512 {
2513 *p++ = *src++;
2514 elem--;
2515 count--;
2516 }
2517 if (!elem && truncate)
2518 {
2519 *(p-1) = 0;
2520 return STRUNCATE;
2521 }
2522 else if (!elem)
2523 {
2524 *dst = 0;
2525 return ERANGE;
2526 }
2527 *p = 0;
2528 return 0;
2529}
unsigned int BOOL
Definition: ntddk_ex.h:94

◆ wcsnlen()

◆ wcspbrk()

_ACRTIMP wchar_t *__cdecl wcspbrk ( const wchar_t str,
const wchar_t accept 
)

Definition at line 2016 of file wcs.c.

2017{
2018 const wchar_t* p;
2019
2020 while (*str)
2021 {
2022 for (p = accept; *p; p++) if (*p == *str) return (wchar_t*)str;
2023 str++;
2024 }
2025 return NULL;
2026}
SOCKET WSAAPI accept(IN SOCKET s, OUT LPSOCKADDR addr, OUT INT FAR *addrlen)
Definition: socklife.c:23

Referenced by _wcsnicoll_l(), _wsetlocale_nolock(), BuildWorkstationsList(), comment_line(), FILEDLG95_InitControls(), FILEDLG95_ValidatePathAction(), FindFirstFileExW(), CHString::FindOneOf(), get_lineW(), GetFileTitleW(), GetLongPathNameW(), GetShortPathNameW(), is_usable_drive_or_unc_root(), CSearchBar::OnSearchButtonClicked(), parse_url_element(), SdbpAddLayerMatches(), SetPermLayerState(), SQLValidDSNW(), StrPBrkW(), test_BadLetters(), UrlCombineW(), and wexpand().

◆ wcsrchr()

_ACRTIMP wchar_t *__cdecl wcsrchr ( const wchar_t str,
wchar_t  wcFor 
)

Definition at line 2973 of file wcs.c.

2974{
2975 WCHAR *ret = NULL;
2976 do { if (*str == ch) ret = (WCHAR *)(ULONG_PTR)str; } while (*str++);
2977 return ret;
2978}
uint32_t ULONG_PTR
Definition: typedefs.h:65

◆ wcsspn()

_ACRTIMP size_t __cdecl wcsspn ( const wchar_t str,
const wchar_t accept 
)

Definition at line 508 of file wcs.c.

509{
510 const wchar_t *ptr;
511 for (ptr = str; *ptr; ptr++) if (!wcschr( accept, *ptr )) break;
512 return ptr - str;
513}

Referenced by GetArg(), IsValidKLID(), ResolveLocaleName(), CHString::SpanIncluding(), ATL::ChTraitsCRT< _CharType >::StringSpanIncluding(), StrSpnW(), and VARIANT_BstrFromReal().

◆ wcsstr()

_ACRTIMP wchar_t *__cdecl wcsstr ( const wchar_t str,
const wchar_t sub 
)

Definition at line 2993 of file wcs.c.

2994{
2995 while(*str)
2996 {
2997 const wchar_t *p1 = str, *p2 = sub;
2998 while(*p1 && *p2 && *p1 == *p2)
2999 {
3000 p1++;
3001 p2++;
3002 }
3003 if(!*p2)
3004 return (wchar_t*)str;
3005 str++;
3006 }
3007 return NULL;
3008}

Referenced by _wcsnicoll_l(), ACPIDispatchDeviceControl(), AddComputerTypeEntries(), ApplyParameterStringsToMessage(), ArcPathNormalize(), BasepGetComputerNameFromNtPath(), Bus_PDO_QueryDeviceText(), Bus_PDO_QueryResourceRequirements(), Bus_PDO_QueryResources(), check_boot_options(), CheckForLiveCD(), cmdUse(), CompareName(), CreateDisplayDriverList(), DnsQuery_W(), DoParseFile(), DoSync(), DoTestEntry(), DriverFilesCallback(), EfiInitpCreateApplicationEntry(), elf_load_debug_info_from_map(), elf_search_and_load_file(), enum_gac_assemblies(), EnumJoysticks(), CHString::Find(), GetEventMessage(), GetProcessorInformation(), GetSystemName(), Global_InStr(), HtmlHelpW(), INTERNET_LoadProxySettings(), IntLoadRegistryParameters(), IopDetectResourceConflict(), IsInternetLocation(), ITSProtocol_Start(), ITSProtocolInfo_CombineUrl(), LISTVIEW_FindItemW(), macho_search_and_load_file(), mciSendStringW(), ModifyValue(), MONTHCAL_PaintTitle(), MSACM_ReorderDriversByPriority(), NavigateToUrl(), CNewMenu::NewItemByCommand(), OpenAdapterHandle(), OpenSetupInf(), ProcessPageShowContextMenu(), QueryDeviceName(), RecycleBin5_Create(), RemoveDeviceW(), ReplaceSubstr(), ResizeDeviceW(), resolve_filename(), RtlCreateUserProcess(), RunAsDlgProc(), ScmIsSecurityService(), SearchCHM_Storage(), service_args_to_vector(), set_deferred_action_props(), SetChmPath(), ShowFailureActions(), SmpQueryRegistrySosOption(), START_TEST(), StartBalanceW(), String_replace(), String_split(), StrStrCase(), StrStrW(), test_dllnames(), Test_GetFiles(), test_swprintf(), TestCommandLine(), TestRedirection(), update_result_text(), UrlCombineW(), VideoPortInitialize(), wmain(), XCOPY_DoCopy(), and xmlwriter_WriteCData().

◆ wcstok()

_ACRTIMP wchar_t *__cdecl wcstok ( wchar_t str,
const wchar_t delim 
)

Definition at line 2065 of file wcs.c.

2066{
2067 return wcstok_s(str, delim, &msvcrt_get_thread_data()->wcstok_next);
2068}
thread_data_t *CDECL msvcrt_get_thread_data(void)
Definition: thread.c:45
wchar_t *CDECL wcstok_s(wchar_t *str, const wchar_t *delim, wchar_t **next_token)
Definition: wcs.c:2031

Referenced by GetDefaultLayoutForLocale(), GetLayerInfo(), GetMessageStringFromDllList(), LoadUsernameHint(), ParseCommandLine(), ParseMoreVariable(), ParseSettings(), pBuildFileList(), StreamingDeviceSetupW(), test_wcstok(), WhereFindByDirs(), WhereGetPathExt(), and wmain().

◆ wcstok_s()

_ACRTIMP wchar_t *__cdecl wcstok_s ( wchar_t str,
const wchar_t delim,
wchar_t **  next_token 
)

Definition at line 2031 of file wcs.c.

2033{
2034 wchar_t *ret;
2035
2036 if (!MSVCRT_CHECK_PMT(delim != NULL)) return NULL;
2037 if (!MSVCRT_CHECK_PMT(next_token != NULL)) return NULL;
2038 if (!MSVCRT_CHECK_PMT(str != NULL || *next_token != NULL)) return NULL;
2039
2040 if (!str) str = *next_token;
2041
2042 while (*str && wcschr( delim, *str )) str++;
2043 if (!*str) ret = NULL;
2044 else
2045 {
2046 ret = str++;
2047 while (*str && !wcschr( delim, *str )) str++;
2048 if (*str) *str++ = 0;
2049 }
2050 *next_token = str;
2051 return ret;
2052}
int next_token(char **, FILE *)

Referenced by wcstok().

◆ wcsxfrm()

_ACRTIMP size_t __cdecl wcsxfrm ( wchar_t dest,
const wchar_t src,
size_t  len 
)

Definition at line 3097 of file wcs.c.

3098{
3099 return _wcsxfrm_l(dest, src, len, NULL);
3100}
size_t CDECL _wcsxfrm_l(wchar_t *dest, const wchar_t *src, size_t len, _locale_t locale)
Definition: wcs.c:3048