Function in stdx_string.h

x_wsmallstr_append

Appends a wide C-string if space allows.

X_STRING_API int32_t x_wsmallstr_append(
 XWSmallstr *s,
 const wchar_t *tail
);

Parameters

XWSmallstr *s
Destination small string.
const wchar_t *tail
Parameter.

Returns

Function-specific integer result.

Function in stdx_string.h

x_wsmallstr_clear

Clears the wide small string to empty.

X_STRING_API void x_wsmallstr_clear(XWSmallstr *s);

Parameters

XWSmallstr *s
Destination small string.

Returns

No return value.

Function in stdx_string.h

x_wsmallstr_cmp

Compares two wide small strings.

X_STRING_API int32_t x_wsmallstr_cmp(
 const XWSmallstr *a,
 const XWSmallstr *b
);

Parameters

const XWSmallstr *a
First input view or string.
const XWSmallstr *b
Second input view or string.

Returns

Negative, zero, or positive according to lexicographic order.

Function in stdx_string.h

x_wsmallstr_cmp_ci

Compares two wide small strings case-insensitively.

X_STRING_API int32_t x_wsmallstr_cmp_ci(
 const XWSmallstr *a,
 const XWSmallstr *b
);

Parameters

const XWSmallstr *a
First input view or string.
const XWSmallstr *b
Second input view or string.

Returns

Negative, zero, or positive according to lexicographic order.

Function in stdx_string.h

x_wsmallstr_cmp_cstr

Compares a wide small string with a wide C-string.

X_STRING_API int32_t x_wsmallstr_cmp_cstr(
 const XWSmallstr *a,
 const wchar_t *b
);

Parameters

const XWSmallstr *a
First input view or string.
const wchar_t *b
Second input view or string.

Returns

Function-specific integer result.

Function in stdx_string.h

x_wsmallstr_find

Finds a wide character within a wide small string.

X_STRING_API int32_t x_wsmallstr_find(
 const XWSmallstr *s,
 wchar_t c
);

Parameters

const XWSmallstr *s
Destination small string.
wchar_t c
Character value.

Returns

Index on success, or -1 if not found.

Function in stdx_string.h

x_wsmallstr_init

Initializes a wide-character small string from a wide C-string.

X_STRING_API int32_t x_wsmallstr_init(
 XWSmallstr *s,
 const wchar_t *src
);

Parameters

XWSmallstr *s
Destination small string.
const wchar_t *src
Source buffer or string.

Returns

Function-specific integer result.

Function in stdx_string.h

x_wsmallstr_length

Returns the current length (in wide characters).

X_STRING_API size_t x_wsmallstr_length(const XWSmallstr *s);

Parameters

const XWSmallstr *s
Destination small string.

Returns

Number of elements in the string (excluding the final terminator).

Function in stdx_string.h

x_wsmallstr_substring

Copies a wide-character substring into a destination small string.

X_STRING_API int32_t x_wsmallstr_substring(
 const XWSmallstr *s,
 size_t start,
 size_t len,
 XWSmallstr *out
);

Parameters

const XWSmallstr *s
Destination small string.
size_t start
Starting offset (0-based).
size_t len
Number of units to copy or inspect.
XWSmallstr *out
Parameter.

Returns

Function-specific integer result.

Function in stdx_string.h

x_wsmallstr_trim

Trims leading and trailing whitespace in a wide small string.

X_STRING_API void x_wsmallstr_trim(XWSmallstr *s);

Parameters

XWSmallstr *s
Destination small string.

Returns

No return value.