ReactOS 0.4.16-dev-2320-ge1853c6
string.c File Reference
#include <string.h>
#include <wchar.h>
#include "windows.h"
#include "winerror.h"
#include "hstring.h"
#include "wine/debug.h"
Include dependency graph for string.c:

Go to the source code of this file.

Classes

struct  hstring_header
 
struct  hstring_private
 

Macros

#define HSTRING_REFERENCE_FLAG   1
 

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (winstring)
 
 C_ASSERT (sizeof(struct hstring_header)<=sizeof(HSTRING_HEADER))
 
static struct hstring_privateimpl_from_HSTRING (HSTRING string)
 
static struct hstring_privateimpl_from_HSTRING_HEADER (HSTRING_HEADER *header)
 
static struct hstring_privateimpl_from_HSTRING_BUFFER (HSTRING_BUFFER buffer)
 
static BOOL alloc_string (UINT32 len, HSTRING *out)
 
HRESULT WINAPI WindowsCreateString (LPCWSTR ptr, UINT32 len, HSTRING *out)
 
HRESULT WINAPI WindowsCreateStringReference (LPCWSTR ptr, UINT32 len, HSTRING_HEADER *header, HSTRING *out)
 
HRESULT WINAPI WindowsDeleteString (HSTRING str)
 
HRESULT WINAPI WindowsDuplicateString (HSTRING str, HSTRING *out)
 
HRESULT WINAPI WindowsPreallocateStringBuffer (UINT32 len, WCHAR **outptr, HSTRING_BUFFER *out)
 
HRESULT WINAPI WindowsDeleteStringBuffer (HSTRING_BUFFER buf)
 
HRESULT WINAPI WindowsPromoteStringBuffer (HSTRING_BUFFER buf, HSTRING *out)
 
UINT32 WINAPI WindowsGetStringLen (HSTRING str)
 
LPCWSTR WINAPI WindowsGetStringRawBuffer (HSTRING str, UINT32 *len)
 
HRESULT WINAPI WindowsStringHasEmbeddedNull (HSTRING str, BOOL *out)
 
HRESULT WINAPI WindowsSubstring (HSTRING str, UINT32 start, HSTRING *out)
 
HRESULT WINAPI WindowsSubstringWithSpecifiedLength (HSTRING str, UINT32 start, UINT32 len, HSTRING *out)
 
HRESULT WINAPI WindowsConcatString (HSTRING str1, HSTRING str2, HSTRING *out)
 
BOOL WINAPI WindowsIsStringEmpty (HSTRING str)
 
HRESULT WINAPI WindowsCompareStringOrdinal (HSTRING str1, HSTRING str2, INT32 *res)
 
HRESULT WINAPI WindowsTrimStringStart (HSTRING str1, HSTRING str2, HSTRING *out)
 
HRESULT WINAPI WindowsTrimStringEnd (HSTRING str1, HSTRING str2, HSTRING *out)
 

Variables

static const WCHAR empty [1]
 

Macro Definition Documentation

◆ HSTRING_REFERENCE_FLAG

#define HSTRING_REFERENCE_FLAG   1

Definition at line 29 of file string.c.

Function Documentation

◆ alloc_string()

static BOOL alloc_string ( UINT32  len,
HSTRING out 
)
static

Definition at line 66 of file string.c.

67{
68 struct hstring_private *priv;
69 priv = malloc(offsetof(struct hstring_private, buffer[len+1]));
70 if (!priv)
71 return FALSE;
72
73 priv->header.flags = 0;
74 priv->header.length = len;
75 priv->header.str = priv->buffer;
76
77 priv->refcount = 1;
78 priv->buffer[len] = '\0';
79
80 *out = (HSTRING)priv;
81 return TRUE;
82}
#define malloc
Definition: debug_ros.c:4
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
GLuint buffer
Definition: glext.h:5915
GLenum GLsizei len
Definition: glext.h:6722
HSTRING__ * HSTRING
Definition: hstring.idl:26
#define offsetof(TYPE, MEMBER)
WCHAR buffer[1]
Definition: string.c:44
struct hstring_header header
Definition: string.c:42
LONG refcount
Definition: string.c:43
wchar_t tm const _CrtWcstime_Writes_and_advances_ptr_ count wchar_t ** out
Definition: wcsftime.cpp:383

Referenced by WindowsConcatString(), WindowsCreateString(), and WindowsPreallocateStringBuffer().

◆ C_ASSERT()

◆ impl_from_HSTRING()

◆ impl_from_HSTRING_BUFFER()

static struct hstring_private * impl_from_HSTRING_BUFFER ( HSTRING_BUFFER  buffer)
inlinestatic

Definition at line 61 of file string.c.

62{
64}
#define CONTAINING_RECORD(address, type, field)
Definition: typedefs.h:260

Referenced by WindowsDeleteStringBuffer(), and WindowsPromoteStringBuffer().

◆ impl_from_HSTRING_HEADER()

static struct hstring_private * impl_from_HSTRING_HEADER ( HSTRING_HEADER header)
inlinestatic

Definition at line 56 of file string.c.

Referenced by WindowsCreateStringReference().

◆ WindowsCompareStringOrdinal()

HRESULT WINAPI WindowsCompareStringOrdinal ( HSTRING  str1,
HSTRING  str2,
INT32 res 
)

Definition at line 400 of file string.c.

401{
402 struct hstring_private *priv1 = impl_from_HSTRING(str1);
403 struct hstring_private *priv2 = impl_from_HSTRING(str2);
404 const WCHAR *buf1 = empty, *buf2 = empty;
405 UINT32 len1 = 0, len2 = 0;
406
407 TRACE("(%p, %p, %p)\n", str1, str2, res);
408
409 if (res == NULL)
410 return E_INVALIDARG;
411 if (str1 == str2)
412 {
413 *res = 0;
414 return S_OK;
415 }
416 if (str1)
417 {
418 buf1 = priv1->header.str;
419 len1 = priv1->header.length;
420 }
421 if (str2)
422 {
423 buf2 = priv2->header.str;
424 len2 = priv2->header.length;
425 }
426 *res = CompareStringOrdinal(buf1, len1, buf2, len2, FALSE) - CSTR_EQUAL;
427 return S_OK;
428}
#define E_INVALIDARG
Definition: ddrawi.h:101
#define NULL
Definition: types.h:112
static struct hstring_private * impl_from_HSTRING(HSTRING string)
Definition: string.c:51
static const WCHAR empty[1]
Definition: string.c:47
GLuint res
Definition: glext.h:9613
#define S_OK
Definition: intsafe.h:52
INT WINAPI CompareStringOrdinal(const WCHAR *str1, INT len1, const WCHAR *str2, INT len2, BOOL ignore_case)
Definition: vista.c:749
XML_HIDDEN void xmlParserErrors const char const xmlChar const xmlChar * str2
Definition: parser.h:35
XML_HIDDEN void xmlParserErrors const char const xmlChar * str1
Definition: parser.h:35
#define TRACE(s)
Definition: solgame.cpp:4
uint32_t UINT32
Definition: typedefs.h:59
#define CSTR_EQUAL
Definition: winnls.h:500
__wchar_t WCHAR
Definition: xmlstorage.h:180

Referenced by test_compare().

◆ WindowsConcatString()

HRESULT WINAPI WindowsConcatString ( HSTRING  str1,
HSTRING  str2,
HSTRING out 
)

Definition at line 356 of file string.c.

357{
358 struct hstring_private *priv1 = impl_from_HSTRING(str1);
359 struct hstring_private *priv2 = impl_from_HSTRING(str2);
360 struct hstring_private *priv;
361
362 TRACE("(%p, %p, %p)\n", str1, str2, out);
363
364 if (out == NULL)
365 return E_INVALIDARG;
366 if (str1 == NULL)
368 if (str2 == NULL)
370 if (!priv1->header.length && !priv2->header.length)
371 {
372 *out = NULL;
373 return S_OK;
374 }
375 if (!alloc_string(priv1->header.length + priv2->header.length, out))
376 return E_OUTOFMEMORY;
377 priv = impl_from_HSTRING(*out);
378 memcpy(priv->buffer, priv1->header.str, priv1->header.length * sizeof(*priv1->buffer));
379 memcpy(priv->buffer + priv1->header.length, priv2->header.str, priv2->header.length * sizeof(*priv2->buffer));
380 return S_OK;
381}
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
HRESULT WINAPI WindowsDuplicateString(HSTRING str, HSTRING *out)
Definition: string.c:161
static BOOL alloc_string(UINT32 len, HSTRING *out)
Definition: string.c:66
#define memcpy(s1, s2, n)
Definition: mkisofs.h:878

Referenced by test_concat().

◆ WindowsCreateString()

HRESULT WINAPI WindowsCreateString ( LPCWSTR  ptr,
UINT32  len,
HSTRING out 
)

Definition at line 87 of file string.c.

89{
90 struct hstring_private *priv;
91
92 TRACE("(%s, %u, %p)\n", debugstr_wn(ptr, len), len, out);
93
94 if (out == NULL)
95 return E_INVALIDARG;
96 if (len == 0)
97 {
98 *out = NULL;
99 return S_OK;
100 }
101 if (ptr == NULL)
102 return E_POINTER;
103 if (!alloc_string(len, out))
104 return E_OUTOFMEMORY;
105 priv = impl_from_HSTRING(*out);
106 memcpy(priv->buffer, ptr, len * sizeof(*priv->buffer));
107 return S_OK;
108}
#define debugstr_wn
Definition: kernel32.h:33
static PVOID ptr
Definition: dispmode.c:27
#define E_POINTER
Definition: winerror.h:3480

Referenced by mta_init_implicit_thread(), test_access(), test_ActivationFactories(), test_compare(), test_concat(), test_create_delete(), test_duplicate(), test_hstring_struct(), test_implicit_mta(), test_substring(), test_trim(), WindowsDuplicateString(), WindowsSubstring(), WindowsSubstringWithSpecifiedLength(), WindowsTrimStringEnd(), and WindowsTrimStringStart().

◆ WindowsCreateStringReference()

HRESULT WINAPI WindowsCreateStringReference ( LPCWSTR  ptr,
UINT32  len,
HSTRING_HEADER header,
HSTRING out 
)

Definition at line 113 of file string.c.

115{
117
118 TRACE("(%s, %u, %p, %p)\n", debugstr_wn(ptr, len), len, header, out);
119
120 if (out == NULL || header == NULL)
121 return E_INVALIDARG;
122 if (ptr != NULL && ptr[len] != '\0')
123 return E_INVALIDARG;
124 if (len == 0)
125 {
126 *out = NULL;
127 return S_OK;
128 }
129 if (ptr == NULL)
130 return E_POINTER;
131
132 priv->header.str = ptr;
133 priv->header.length = len;
134 priv->header.flags = HSTRING_REFERENCE_FLAG;
135
136 *out = (HSTRING)priv;
137 return S_OK;
138}
static struct hstring_private * impl_from_HSTRING_HEADER(HSTRING_HEADER *header)
Definition: string.c:56
#define HSTRING_REFERENCE_FLAG
Definition: string.c:29

Referenced by test_access(), test_compare(), test_concat(), test_create_delete(), test_duplicate(), test_hstring_struct(), test_substring(), and test_trim().

◆ WindowsDeleteString()

HRESULT WINAPI WindowsDeleteString ( HSTRING  str)

Definition at line 143 of file string.c.

144{
145 struct hstring_private *priv = impl_from_HSTRING(str);
146
147 TRACE("(%p)\n", str);
148
149 if (str == NULL)
150 return S_OK;
151 if (priv->header.flags & HSTRING_REFERENCE_FLAG)
152 return S_OK;
153 if (InterlockedDecrement(&priv->refcount) == 0)
154 free(priv);
155 return S_OK;
156}
#define InterlockedDecrement
Definition: armddk.h:52
#define free
Definition: debug_ros.c:5
const WCHAR * str

Referenced by mta_init_implicit_thread(), test_access(), test_ActivationFactories(), test_compare(), test_concat(), test_create_delete(), test_duplicate(), test_hstring_struct(), test_implicit_mta(), test_string_buffer(), test_substring(), test_trim(), and WindowsDeleteStringBuffer().

◆ WindowsDeleteStringBuffer()

HRESULT WINAPI WindowsDeleteStringBuffer ( HSTRING_BUFFER  buf)

Definition at line 212 of file string.c.

213{
214 struct hstring_private *priv = NULL;
215
216 TRACE("(%p)\n", buf);
217
218 if(buf)
220
221 return WindowsDeleteString((HSTRING)priv);
222}
HRESULT WINAPI WindowsDeleteString(HSTRING str)
Definition: string.c:143
static struct hstring_private * impl_from_HSTRING_BUFFER(HSTRING_BUFFER buffer)
Definition: string.c:61
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751

Referenced by test_string_buffer().

◆ WindowsDuplicateString()

HRESULT WINAPI WindowsDuplicateString ( HSTRING  str,
HSTRING out 
)

Definition at line 161 of file string.c.

162{
163 struct hstring_private *priv = impl_from_HSTRING(str);
164
165 TRACE("(%p, %p)\n", str, out);
166
167 if (out == NULL)
168 return E_INVALIDARG;
169 if (str == NULL)
170 {
171 *out = NULL;
172 return S_OK;
173 }
174 if (priv->header.flags & HSTRING_REFERENCE_FLAG)
175 return WindowsCreateString(priv->header.str, priv->header.length, out);
177 *out = str;
178 return S_OK;
179}
#define InterlockedIncrement
Definition: armddk.h:53
HRESULT WINAPI WindowsCreateString(LPCWSTR ptr, UINT32 len, HSTRING *out)
Definition: string.c:87

Referenced by test_duplicate(), test_hstring_struct(), WindowsConcatString(), WindowsTrimStringEnd(), and WindowsTrimStringStart().

◆ WindowsGetStringLen()

UINT32 WINAPI WindowsGetStringLen ( HSTRING  str)

Definition at line 249 of file string.c.

250{
251 struct hstring_private *priv = impl_from_HSTRING(str);
252
253 TRACE("(%p)\n", str);
254
255 if (str == NULL)
256 return 0;
257 return priv->header.length;
258}

Referenced by _check_string(), WindowsSubstring(), and WindowsSubstringWithSpecifiedLength().

◆ WindowsGetStringRawBuffer()

LPCWSTR WINAPI WindowsGetStringRawBuffer ( HSTRING  str,
UINT32 len 
)

Definition at line 263 of file string.c.

264{
265 struct hstring_private *priv = impl_from_HSTRING(str);
266
267 TRACE("(%p, %p)\n", str, len);
268
269 if (str == NULL)
270 {
271 if (len)
272 *len = 0;
273 return empty;
274 }
275 if (len)
276 *len = priv->header.length;
277 return priv->header.str;
278}

Referenced by _check_string(), DllGetActivationFactory(), and RoGetActivationFactory().

◆ WindowsIsStringEmpty()

BOOL WINAPI WindowsIsStringEmpty ( HSTRING  str)

Definition at line 386 of file string.c.

387{
388 struct hstring_private *priv = impl_from_HSTRING(str);
389
390 TRACE("(%p)\n", str);
391
392 if (str == NULL)
393 return TRUE;
394 return priv->header.length == 0;
395}

Referenced by _check_string().

◆ WindowsPreallocateStringBuffer()

HRESULT WINAPI WindowsPreallocateStringBuffer ( UINT32  len,
WCHAR **  outptr,
HSTRING_BUFFER *  out 
)

Definition at line 184 of file string.c.

186{
187 struct hstring_private *priv;
188 HSTRING str;
189
190 TRACE("(%u, %p, %p)\n", len, outptr, out);
191
192 if (outptr == NULL || out == NULL)
193 return E_POINTER;
194 if (len == 0)
195 {
196 *outptr = (LPWSTR)empty;
197 *out = NULL;
198 return S_OK;
199 }
200
201 if (!alloc_string(len, &str))
202 return E_OUTOFMEMORY;
203 priv = impl_from_HSTRING(str);
204 *outptr = priv->buffer;
205 *out = (HSTRING_BUFFER)&priv->buffer;
206 return S_OK;
207}
WCHAR * LPWSTR
Definition: xmlstorage.h:184

Referenced by test_string_buffer().

◆ WindowsPromoteStringBuffer()

HRESULT WINAPI WindowsPromoteStringBuffer ( HSTRING_BUFFER  buf,
HSTRING out 
)

Definition at line 227 of file string.c.

228{
230
231 TRACE("(%p, %p)\n", buf, out);
232
233 if (out == NULL)
234 return E_POINTER;
235 if (buf == NULL)
236 {
237 *out = NULL;
238 return S_OK;
239 }
240 if (priv->buffer[priv->header.length] != 0 || priv->header.flags & HSTRING_REFERENCE_FLAG || priv->refcount != 1)
241 return E_INVALIDARG;
242 *out = (HSTRING)priv;
243 return S_OK;
244}

Referenced by test_string_buffer().

◆ WindowsStringHasEmbeddedNull()

HRESULT WINAPI WindowsStringHasEmbeddedNull ( HSTRING  str,
BOOL out 
)

Definition at line 283 of file string.c.

284{
285 UINT32 i;
286 struct hstring_private *priv = impl_from_HSTRING(str);
287
288 TRACE("(%p, %p)\n", str, out);
289
290 if (out == NULL)
291 return E_INVALIDARG;
292 if (str == NULL)
293 {
294 *out = FALSE;
295 return S_OK;
296 }
297 for (i = 0; i < priv->header.length; i++)
298 {
299 if (priv->header.str[i] == '\0')
300 {
301 *out = TRUE;
302 return S_OK;
303 }
304 }
305 *out = FALSE;
306 return S_OK;
307}
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

Referenced by _check_string().

◆ WindowsSubstring()

HRESULT WINAPI WindowsSubstring ( HSTRING  str,
UINT32  start,
HSTRING out 
)

Definition at line 312 of file string.c.

313{
314 struct hstring_private *priv = impl_from_HSTRING(str);
316
317 TRACE("(%p, %u, %p)\n", str, start, out);
318
319 if (out == NULL)
320 return E_INVALIDARG;
321 if (start > len)
322 return E_BOUNDS;
323 if (start == len)
324 {
325 *out = NULL;
326 return S_OK;
327 }
328 return WindowsCreateString(&priv->header.str[start], len - start, out);
329}
UINT32 WINAPI WindowsGetStringLen(HSTRING str)
Definition: string.c:249
GLuint start
Definition: gl.h:1545
#define E_BOUNDS
Definition: winerror.h:3454

Referenced by test_substring().

◆ WindowsSubstringWithSpecifiedLength()

HRESULT WINAPI WindowsSubstringWithSpecifiedLength ( HSTRING  str,
UINT32  start,
UINT32  len,
HSTRING out 
)

Definition at line 334 of file string.c.

335{
336 struct hstring_private *priv = impl_from_HSTRING(str);
337
338 TRACE("(%p, %u, %u, %p)\n", str, start, len, out);
339
340 if (out == NULL)
341 return E_INVALIDARG;
342 if (start + len < start ||
344 return E_BOUNDS;
345 if (len == 0)
346 {
347 *out = NULL;
348 return S_OK;
349 }
350 return WindowsCreateString(&priv->header.str[start], len, out);
351}

Referenced by test_substring().

◆ WindowsTrimStringEnd()

HRESULT WINAPI WindowsTrimStringEnd ( HSTRING  str1,
HSTRING  str2,
HSTRING out 
)

Definition at line 460 of file string.c.

461{
462 struct hstring_private *priv1 = impl_from_HSTRING(str1);
463 struct hstring_private *priv2 = impl_from_HSTRING(str2);
464 UINT32 len;
465
466 TRACE("(%p, %p, %p)\n", str1, str2, out);
467
468 if (!out || !str2 || !priv2->header.length)
469 return E_INVALIDARG;
470 if (!str1)
471 {
472 *out = NULL;
473 return S_OK;
474 }
475 for (len = priv1->header.length; len > 0; len--)
476 {
477 if (!wmemchr(priv2->header.str, priv1->header.str[len - 1], priv2->header.length))
478 break;
479 }
480 return (len < priv1->header.length) ? WindowsCreateString(priv1->header.str, len, out) :
482}
static wchar_t * wmemchr(const wchar_t *s, wchar_t c, size_t n)
Definition: wchar.h:48

Referenced by test_trim().

◆ WindowsTrimStringStart()

HRESULT WINAPI WindowsTrimStringStart ( HSTRING  str1,
HSTRING  str2,
HSTRING out 
)

Definition at line 433 of file string.c.

434{
435 struct hstring_private *priv1 = impl_from_HSTRING(str1);
436 struct hstring_private *priv2 = impl_from_HSTRING(str2);
438
439 TRACE("(%p, %p, %p)\n", str1, str2, out);
440
441 if (!out || !str2 || !priv2->header.length)
442 return E_INVALIDARG;
443 if (!str1)
444 {
445 *out = NULL;
446 return S_OK;
447 }
448 for (start = 0; start < priv1->header.length; start++)
449 {
450 if (!wmemchr(priv2->header.str, priv1->header.str[start], priv2->header.length))
451 break;
452 }
453 return start ? WindowsCreateString(&priv1->header.str[start], priv1->header.length - start, out) :
455}

Referenced by test_trim().

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( winstring  )

Variable Documentation

◆ empty

const WCHAR empty[1]
static

Definition at line 47 of file string.c.

Referenced by _check_string(), _create_option_elem(), _Slist_sort(), _test_open(), _test_server_open(), _wcstoi64_l(), _wcstoui64_l(), AppendFullPathURL(), list< _Tp, >::back(), BinaryToBase64W(), XMLStorage::XMLNode::Children::clear(), clear_lfn_slots(), create_command(), CRYPT_IsEmptyName(), delete_tree(), delete_tree_(), dictionary_put_Key(), do_reg_operation(), do_splits(), StringTest::find(), list< _Tp, >::front(), get_patch_product_codes(), get_regdata(), get_tasks_root_folder(), HTMLImageElementFactory_value(), _Rb_tree< _Key, _Compare, _Value, _KeyOfValue, _Traits, >::insert_unique(), InternetOpenRequest_test(), JSGlobal_parseInt(), lfn_remove(), TMapLoader::Load(), LoadWinTypeFromCHM(), MSI_GetProductInfo(), nfs41_client_state_revoked(), parse_culture(), parse_probing(), parse_startup(), parse_supported_runtime(), list< _Tp, >::pop_back(), list< _Tp, >::pop_front(), proxtrans(), pSetupStringTableStringFromId(), recvrequest(), REGION_CropRegion(), ReOpenFile(), reset(), run_service(), s_remote_FormatRecord(), s_remote_GetProperty(), s_remote_GetSourcePath(), s_remote_GetTargetPath(), s_remote_SummaryInfoGetProperty(), s_remote_ViewGetError(), select_style(), set_default_templates(), SHLWAPI_InvokeByIID(), SQLWritePrivateProfileStringW(), list< _Tp, >::swap(), StringTest::template_expression(), StringTest::template_wexpression(), test_assign(), test_construction(), test_copyassignment(), test_copyconstructor(), test_CopyFolder(), test_CopyStgMedium(), test_CPoint(), test_create_delete_svc(), test_create_device_list_ex(), test_CreateAssemblyNameObject(), test_CRect(), test_CryptCATOpen(), test_CSize(), test_DnsNameCompare_A(), test_DxDiag_SoundDevices(), test_DxDiag_SystemInfo(), test_empty_headers_param(), test_find_file(), test_fromguid(), test_GetAddrInfoW(), test_GetLongPathNameW(), test_GetVolumePathNamesForVolumeNameW(), test_HlinkGetSetStringReference(), test_InstallAssembly(), test_IsDomainLegalCookieDomainW(), test_IWinHttpRequest(), test_mbsspn(), test_mbsspnp(), test_menu_iteminfo(), test_misc(), test_NetFwAuthorizedApplication(), test_PdhValidatePathExW(), test_PdhValidatePathW(), test_PropVariantCompareEx(), test_QueryAssemblyInfo(), test_request_parameter_defaults(), test_sequence(), test_SQLGetPrivateProfileStringW(), test_Startup(), test_string_pointers(), test_stringtable(), test_Win32_Service(), test_WinHttpAddHeaders(), CProgressDialog::update_dialog(), update_title(), VARIANT_BstrReplaceDecimal(), Widget_array(), Widget_mystruct(), Widget_rect(), WindowsCompareStringOrdinal(), WindowsGetStringRawBuffer(), WindowsPreallocateStringBuffer(), wnet_use_connection(), xmldoc_createElement(), and xmlParse3986Segment().