mirror of
https://github.com/bkaradzic/bx.git
synced 2026-10-30 04:25:47 +00:00
Renaming string functions.
This commit is contained in:
+3
-15
@@ -133,14 +133,14 @@ namespace bx
|
||||
int32_t strincmp(const char* _lhs, const char* _rhs, int32_t _max = INT32_MAX);
|
||||
|
||||
///
|
||||
int32_t strnlen(const char* _str, int32_t _max = INT32_MAX);
|
||||
int32_t strLen(const char* _str, int32_t _max = INT32_MAX);
|
||||
|
||||
/// Copy _num characters from string _src to _dst buffer of maximum _dstSize capacity
|
||||
/// including zero terminator. Copy will be terminated with '\0'.
|
||||
int32_t strlncpy(char* _dst, int32_t _dstSize, const char* _src, int32_t _num = INT32_MAX);
|
||||
int32_t strCopy(char* _dst, int32_t _dstSize, const char* _src, int32_t _num = INT32_MAX);
|
||||
|
||||
///
|
||||
int32_t strlncat(char* _dst, int32_t _dstSize, const char* _src, int32_t _num = INT32_MAX);
|
||||
int32_t strCat(char* _dst, int32_t _dstSize, const char* _src, int32_t _num = INT32_MAX);
|
||||
|
||||
///
|
||||
const char* strnchr(const char* _str, char _ch, int32_t _max = INT32_MAX);
|
||||
@@ -215,18 +215,6 @@ namespace bx
|
||||
/// Convert size in bytes to human readable string.
|
||||
void prettify(char* _out, int32_t _count, uint64_t _size);
|
||||
|
||||
/// Copy src to string dst of size siz. At most siz-1 characters
|
||||
/// will be copied. Always NUL terminates (unless siz == 0).
|
||||
/// Returns strlen(src); if retval >= siz, truncation occurred.
|
||||
int32_t strlcpy(char* _dst, const char* _src, int32_t _max);
|
||||
|
||||
/// Appends src to string dst of size siz (unlike strncat, siz is the
|
||||
/// full size of dst, not space left). At most siz-1 characters
|
||||
/// will be copied. Always NUL terminates (unless siz <= strlen(dst)).
|
||||
/// Returns strlen(src) + MIN(siz, strlen(initial dst)).
|
||||
/// If retval >= siz, truncation occurred.
|
||||
int32_t strlcat(char* _dst, const char* _src, int32_t _max);
|
||||
|
||||
///
|
||||
int32_t toString(char* _out, int32_t _max, double _value);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user