#include "ktypes.h"
Defines | |
| #define | KString_new(len) _KString_new (len , __K_FILE__, __K_LINE__) |
| Returns a string of length given as a parameter plus 1. | |
| #define | k_strcpy(src) k_strcpy_info (src, __K_FILE__, __K_LINE__) |
| Copies the string given as parameter in another one. | |
| #define | k_strncpy(src, n) k_strncpy_info(src, n, __K_FILE__, __K_LINE__) |
| Copies the first characters of the string given as parameter in another one. | |
| #define | k_strconcat(str1, str2) _k_strconcat (str1, str2, __K_FILE__, __K_LINE__) |
| Concatenates two strings. | |
Functions | |
| KTL_API KString | k_strncat (KString str1, KString str2, KInt n) |
| Appends the first characters of a string to another one, plus a terminating null-character. | |
| KTL_API KInt | k_strncmp (KCString str1, KCString str2, KInt64 n) |
| Compares two strings. | |
| KTL_API KInt | k_strncmp_case (KCString str1, KCString str2, KInt64 n) |
| Compares two strings. | |
| KTL_API KString | _KString_new (const KInt64 len, KString file, KInt32 line) |
| Returns a string of length given as a parameter plus 1. | |
| KTL_API KInt64 | k_strlen (KCString str) |
| Returns the length of a string. | |
| KTL_API KInt | k_strcmp (KCString str1, KCString str2) |
| Compares two strings. | |
| KTL_API KString | k_strcpy_std (KString dst, KCString src) |
| Copies the second string into the first one, including the terminating null character. | |
| KTL_API KString | k_strncpy_std (KString dst, KCString src, KInt64 bytes) |
| Copies the first characters of a string in another one. | |
| KTL_API KString | k_strcpy_info (KCString src, KString file, KInt32 line) |
| Copies the string given as parameter in another one. | |
| KTL_API KString | k_strncpy_info (KCString src, KInt64 n, KString file, KInt32 line) |
| Copies the first characters of the string given as parameter in another one. | |
| KTL_API KString | _k_strconcat (KString str1, KString str2, KString sFile, KInt32 iLine) |
| Concatenates two strings. | |
| KTL_API KChar | k_tolower (KChar c) |
| Obtains the lower case of a character. | |
| KTL_API KChar | k_toupper (KChar c) |
| Obtains the upper case of a character. | |
| KTL_API KString | KString_cloneToLower (KCString sText) |
| Clones the given string and converts it in lower case. | |
| KTL_API KString | KString_toLower (KString sText) |
| Sets in lower case the given string. | |
| KTL_API KUInt64 | KString_find (KCString sText, KCString sRef) |
| Searches a string in another one. | |
| KTL_API void | KCStrArray_delete (KCStrArray *pCStrArray) |
| Deletes a KCStrArray structure. | |
|
|
Concatenates two strings. The second string then the first one and returns the first one with the appropriate size
|
|
|
Copies the string given as parameter in another one.
|
|
|
Copies the first characters of the string given as parameter in another one.
|
|
|
Returns a string of length given as a parameter plus 1. All the characters of the string are equal to ''
|
|
||||||||||||||||||||
|
Concatenates two strings. The second string then the first one and returns the first one with the appropriate size
|
|
||||||||||||||||
|
Returns a string of length given as a parameter plus 1. All the characters of the string are equal to ''
|
|
||||||||||||
|
Compares two strings. This function starts comparing the first character of each string. If they are equal to each other, it continues with the following pairs until the characters differ or until a terminating null-character is reached
|
|
||||||||||||||||
|
Copies the string given as parameter in another one.
|
|
||||||||||||
|
Copies the second string into the first one, including the terminating null character.
|
|
|
Returns the length of a string. The length of a string is determined by the terminating null-character. Thus, the string is as long as the amount of characters between the beginning of the string and the terminating null character
|
|
||||||||||||||||
|
Appends the first characters of a string to another one, plus a terminating null-character.
|
|
||||||||||||||||
|
Compares two strings. Compares up to a maximum number the characters of two strings. This function starts comparing the first character of each string. If they are equal to each other, it continues with the following pairs until the characters differ, until a terminating null-character is reached, or until a maximum number of characters match in both strings, whichever happens first
|
|
||||||||||||||||
|
Compares two strings. Compares up to a maximum number the characters of two strings by considering the case. This function starts comparing the first character of each string. If they are equal to each other, it continues with the following pairs until the characters differ, until a terminating null-character is reached, or until a maximum number of characters match in both strings, whichever happens first.
|
|
||||||||||||||||||||
|
Copies the first characters of the string given as parameter in another one.
|
|
||||||||||||||||
|
Copies the first characters of a string in another one.
|
|
|
Obtains the lower case of a character.
|
|
|
Obtains the upper case of a character.
|
|
|
Deletes a KCStrArray structure.
|
|
|
Clones the given string and converts it in lower case.
|
|
||||||||||||
|
Searches a string in another one.
|
|
|
Sets in lower case the given string.
|
1.3.8