#include <hstring.h>
Go to the source code of this file.
|
| HRESULT WINAPI | WindowsCompareStringOrdinal (HSTRING str1, HSTRING str2, INT32 *order) |
| |
| HRESULT WINAPI | WindowsConcatString (HSTRING str1, HSTRING str2, 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 | WindowsDeleteStringBuffer (HSTRING_BUFFER buf) |
| |
| HRESULT WINAPI | WindowsDuplicateString (HSTRING str, HSTRING *out) |
| |
| UINT32 WINAPI | WindowsGetStringLen (HSTRING str) |
| |
| LPCWSTR WINAPI | WindowsGetStringRawBuffer (HSTRING str, UINT32 *len) |
| |
| BOOL WINAPI | WindowsIsStringEmpty (HSTRING str) |
| |
| HRESULT WINAPI | WindowsPreallocateStringBuffer (UINT32 len, WCHAR **outptr, HSTRING_BUFFER *out) |
| |
| HRESULT WINAPI | WindowsPromoteStringBuffer (HSTRING_BUFFER buf, HSTRING *out) |
| |
| HRESULT WINAPI | WindowsReplaceString (HSTRING haystack, HSTRING needle, HSTRING replacement, HSTRING *out) |
| |
| HRESULT WINAPI | WindowsStringHasEmbeddedNull (HSTRING str, BOOL *out) |
| |
| HRESULT WINAPI | WindowsSubstring (HSTRING str, UINT32 pos, HSTRING *out) |
| |
| HRESULT WINAPI | WindowsSubstringWithSpecifiedLength (HSTRING str, UINT32 pos, UINT32 len, HSTRING *out) |
| |
| HRESULT WINAPI | WindowsTrimStringEnd (HSTRING str, HSTRING charstr, HSTRING *out) |
| |
| HRESULT WINAPI | WindowsTrimStringStart (HSTRING str, HSTRING charstr, HSTRING *out) |
| |
◆ WindowsCompareStringOrdinal()
Definition at line 400 of file string.c.
401{
405 UINT32 len1 = 0, len2 = 0;
406
408
412 {
415 }
417 {
419 len1 = priv1->
header.length;
420 }
422 {
424 len2 = priv2->
header.length;
425 }
428}
static struct hstring_private * impl_from_HSTRING(HSTRING string)
static const WCHAR empty[1]
INT WINAPI CompareStringOrdinal(const WCHAR *str1, INT len1, const WCHAR *str2, INT len2, BOOL ignore_case)
XML_HIDDEN void xmlParserErrors const char const xmlChar const xmlChar * str2
XML_HIDDEN void xmlParserErrors const char const xmlChar * str1
struct hstring_header header
Referenced by test_compare().
◆ WindowsConcatString()
Definition at line 356 of file string.c.
357{
361
363
371 {
374 }
381}
HRESULT WINAPI WindowsDuplicateString(HSTRING str, HSTRING *out)
static BOOL alloc_string(UINT32 len, HSTRING *out)
#define memcpy(s1, s2, n)
wchar_t tm const _CrtWcstime_Writes_and_advances_ptr_ count wchar_t ** out
Referenced by test_concat().
◆ WindowsCreateString()
Definition at line 87 of file string.c.
89{
91
93
97 {
100 }
108}
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()
◆ WindowsDeleteString()
Definition at line 143 of file string.c.
144{
146
148
156}
#define InterlockedDecrement
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()
Definition at line 212 of file string.c.
213{
215
217
220
222}
HRESULT WINAPI WindowsDeleteString(HSTRING str)
static struct hstring_private * impl_from_HSTRING_BUFFER(HSTRING_BUFFER buffer)
GLenum GLuint GLenum GLsizei const GLchar * buf
Referenced by test_string_buffer().
◆ WindowsDuplicateString()
◆ WindowsGetStringLen()
◆ WindowsGetStringRawBuffer()
◆ WindowsIsStringEmpty()
◆ WindowsPreallocateStringBuffer()
◆ WindowsPromoteStringBuffer()
◆ WindowsReplaceString()
◆ WindowsStringHasEmbeddedNull()
Definition at line 283 of file string.c.
284{
287
289
293 {
296 }
297 for (
i = 0;
i < priv->
header.length;
i++)
298 {
299 if (priv->
header.str[
i] ==
'\0')
300 {
303 }
304 }
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
Referenced by _check_string().
◆ WindowsSubstring()
Definition at line 312 of file string.c.
313{
316
318
324 {
327 }
329}
UINT32 WINAPI WindowsGetStringLen(HSTRING str)
Referenced by test_substring().
◆ WindowsSubstringWithSpecifiedLength()
◆ WindowsTrimStringEnd()
Definition at line 460 of file string.c.
461{
465
467
471 {
474 }
476 {
478 break;
479 }
482}
static wchar_t * wmemchr(const wchar_t *s, wchar_t c, size_t n)
Referenced by test_trim().
◆ WindowsTrimStringStart()
Definition at line 433 of file string.c.
434{
438
440
444 {
447 }
449 {
451 break;
452 }
455}
Referenced by test_trim().