Lely core libraries 2.3.4
|
This header file is part of the utilities library; it contains (16-bit) Unicode string functions. More...
Go to the source code of this file.
Functions | |
size_t | str16len (const char16_t *s) |
Returns the number of (16-bit) Unicode characters, excluding the terminating null bytes, in the string at s. More... | |
char16_t * | str16ncpy (char16_t *dst, const char16_t *src, size_t n) |
Copies n (16-bit) Unicode characters from the string at src to dst. More... | |
int | str16ncmp (const char16_t *s1, const char16_t *s2, size_t n) |
Compares two (16-bit) Unicode strings. More... | |
This header file is part of the utilities library; it contains (16-bit) Unicode string functions.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file ustring.h.
|
inline |
|
inline |
Copies n (16-bit) Unicode characters from the string at src to dst.
If the string at src is shorter than n characters, NUL characters are appended to the string at dst until n characters haven been written.
dst | the destination address, which MUST be large enough to hold the string. |
src | a pointer to the string to be copied. |
n | the number of (16-bit) Unicode characters to copy. |
|
inline |
Compares two (16-bit) Unicode strings.
s1 | a pointer to the first string. |
s2 | a pointer to the second string. |
n | the maximum number of characters to compare. |