4#ifndef RUDIMENTS_WCHARSTRING_H
5#define RUDIMENTS_WCHARSTRING_H
7#include <rudiments/private/wcharstringincludes.h>
25 static size_t getSize(
const wchar_t *
string);
37 static bool isYes(
const wchar_t *
string);
45 static bool isNo(
const wchar_t *
string);
135 const wchar_t *
str2);
146 const wchar_t *
str2);
161 const wchar_t *
str2);
175 const wchar_t *delimiters);
181 const wchar_t *
str2);
193 const wchar_t *delimiters);
260 const wchar_t *
const *set);
267 const wchar_t *
const *set);
505 const wchar_t *
string,
553 const wchar_t *
string,
604 const wchar_t *
string,
656 const wchar_t *
string,
673 const wchar_t *start,
1138 const wchar_t *
string);
1144 const wchar_t *
string,
1150 const wchar_t *
string,
1158 const wchar_t *
string,
1252 static wchar_t *
pad(
const wchar_t *
string,
1265 static void split(
const wchar_t *
string,
1280 static void split(
const wchar_t *
string,
1294 static void split(
const wchar_t *
string,
1308 static void split(
const wchar_t *
string,
1318 size_t start,
size_t end);
1400 const wchar_t *
format, ...);
1452 const wchar_t *
format, ...);
1482 #include <rudiments/private/wcharstring.h>
Definition character.h:11
Definition wcharstring.h:17
static const wchar_t * findFirstOrEnd(const wchar_t *haystack, wchar_t needle)
static wchar_t * getHumanReadable(long double number)
static void lower(wchar_t *str)
static wchar_t * replace(const wchar_t *str, const wchar_t *const *oldstrset, size_t *oldstrlen, const wchar_t *const *newstrset)
static uint16_t getIntegerLength(int32_t number)
static bool isNumber(const wchar_t *val, int32_t len)
static wchar_t * copy(wchar_t *dest, const wchar_t *source, size_t len)
static int32_t compareNatural(const wchar_t *str1, const wchar_t *str2)
static const wchar_t * findFirstOfSetOrEnd(const wchar_t *haystack, const wchar_t *set)
static wchar_t * duplicateUcs2(const ucs2_t *str)
static void center(wchar_t *str, int32_t len)
static wchar_t * parseNumber(uint64_t number)
static bool isYes(const wchar_t *string)
static bool compareWithWildcards(const wchar_t *string, const wchar_t *pattern, wchar_t singlewildcard, wchar_t multiwildcard)
static wchar_t * findFirstOrEndIgnoringCase(wchar_t *haystack, const wchar_t *needle)
static const wchar_t * findFirstOrEnd(const wchar_t *haystack, const wchar_t *needle)
static const wchar_t * findLastIgnoringCase(const wchar_t *haystack, wchar_t needle)
static void rightJustify(wchar_t *str, int32_t len)
static wchar_t * parseNumber(int64_t number)
static wchar_t * replace(const wchar_t *str, const wchar_t *oldstr, const wchar_t *newstr)
static bool supportsPrintf()
static wchar_t * findFirstOrEnd(wchar_t *haystack, const wchar_t *needle)
static wchar_t * getHumanReadable(uint64_t number)
static wchar_t * parseNumber(double number, uint16_t precision, uint16_t scale)
static wchar_t * parseNumber(int32_t number, uint16_t zeropadding)
static wchar_t * parseNumber(uint32_t number)
static size_t getLengthContainingSet(const wchar_t *haystack, const wchar_t *set)
static int64_t convertToInteger(const wchar_t *string, const wchar_t **endptr, int32_t base)
static wchar_t * insertString(const wchar_t *dest, const wchar_t *src, uint64_t index)
static bool strip(wchar_t *str, wchar_t character)
static void leftTrim(wchar_t *str)
static void replaceIgnoringCase(wchar_t *str, const wchar_t *oldchars, wchar_t newchar)
static wchar_t * parseNumber(int32_t number)
static wchar_t * getHumanReadable(int64_t number)
static wchar_t * append(wchar_t *dest, double number, uint16_t scale)
static wchar_t * parseNumber(double number)
static long double convertToFloat(const wchar_t *string, const wchar_t **endptr)
static wchar_t * copy(wchar_t *dest, size_t location, const wchar_t *source)
static void split(const wchar_t *string, const wchar_t *delimiter, bool collapse, wchar_t ***list, uint64_t *listcount)
static bool startsWith(const wchar_t *haystack, const wchar_t *needle)
static int32_t compare(const wchar_t *str1, const wchar_t *str2)
static wchar_t * isBetween(const wchar_t *str, const wchar_t *start, const wchar_t *end)
static const wchar_t * findLast(const wchar_t *haystack, const wchar_t *needle)
static void bothTrim(wchar_t *str, wchar_t character)
static wchar_t * append(wchar_t *dest, int64_t number)
static void rightTrim(wchar_t *str)
static wchar_t * findFirstOfSetOrEnd(wchar_t *haystack, const wchar_t *set)
static wchar_t * replaceIgnoringCase(const wchar_t *str, const wchar_t *oldstr, const wchar_t *newstr)
static wchar_t * getSubString(const wchar_t *str, size_t start, size_t end)
static wchar_t * findEndOfQuotedString(wchar_t *string, size_t stringlen, wchar_t quote, bool backslash, bool doubling)
static int32_t compareIgnoringCase(const wchar_t *str1, const wchar_t *str2, size_t len)
static wchar_t * convertAmount(int64_t amount)
static wchar_t * parseNumber(uint32_t number, uint16_t zeropadding)
static ssize_t printf(wchar_t *buffer, size_t len, const wchar_t *format, va_list *argp)
static ssize_t printf(wchar_t *buffer, size_t len, const wchar_t *format,...)
static size_t getLength(const wchar_t *string)
static bool isNumber(const wchar_t *val)
static size_t getSize(const wchar_t *string)
static wchar_t * duplicateUcs2(const ucs2_t *str, size_t len, wchar_t replacement)
static wchar_t * safeCopy(wchar_t *dest, size_t destlen, const wchar_t *source)
static wchar_t * append(wchar_t *dest, uint64_t number)
static wchar_t * copy(wchar_t *dest, size_t location, const wchar_t *source, size_t len)
static wchar_t * duplicateUcs2(const ucs2_t *str, wchar_t replacement)
static wchar_t * findFirstIgnoringCase(wchar_t *haystack, const wchar_t *needle)
static uint16_t getIntegerLength(int16_t number)
static wchar_t * parseNumber(int16_t number, uint16_t zeropadding)
static uint16_t getIntegerLength(uint32_t number)
static void rightTrim(wchar_t *str, wchar_t character)
static uint16_t getIntegerLength(uint16_t number)
static wchar_t * isAfter(const wchar_t *str, const wchar_t *delimiter)
static wchar_t * escape(const wchar_t *input, const wchar_t *characters)
static uint64_t convertToUnsignedInteger(const wchar_t *string, const wchar_t **endptr, int32_t base)
static size_t getLengthNotContainingSet(const wchar_t *haystack, const wchar_t *set)
static wchar_t * duplicateUcs2(const ucs2_t *str, bool bigendian)
static int64_t convertAmount(const wchar_t *amount)
static void replace(wchar_t *str, const wchar_t *oldchars, wchar_t newchar)
static wchar_t * findLastOfSetOrEnd(wchar_t *haystack, const wchar_t *set)
static bool compareWithWildcards(const wchar_t *string, const wchar_t *pattern, size_t patternlength, wchar_t singlewildcard, wchar_t multiwildcard)
static wchar_t * unescape(const wchar_t *input)
static wchar_t * parseNumber(float number)
static uint64_t convertToUnsignedInteger(const wchar_t *string, const wchar_t **endptr)
static int64_t convertToInteger(const wchar_t *string)
static void escape(const wchar_t *input, uint64_t inputlen, wchar_t **output, uint64_t *outputlen, const wchar_t *characters)
static wchar_t * parseNumber(uint16_t number, uint16_t zeropadding)
static const wchar_t * findEndOfQuotedString(const wchar_t *string, bool backslash, bool doubling)
static wchar_t * findFirst(wchar_t *haystack, const wchar_t *needle)
static wchar_t * findLast(wchar_t *haystack, wchar_t needle)
static int32_t compareVersions(const wchar_t *str1, const wchar_t *str2, const wchar_t *delimiters)
static wchar_t * duplicate(const wchar_t *str, size_t len)
static bool contains(const wchar_t *haystack, const wchar_t *needle)
static const wchar_t * findFirstIgnoringCase(const wchar_t *haystack, wchar_t needle)
static wchar_t * duplicateUcs2(const ucs2_t *str, size_t len, bool bigendian)
static const wchar_t * findEndOfQuotedString(const wchar_t *string, size_t stringlen, bool backslash, bool doubling)
static uint64_t convertToUnsignedInteger(const wchar_t *string)
static wchar_t * parseNumber(float number, uint16_t precision, uint16_t scale)
static int32_t compare(const wchar_t *str1, const wchar_t *str2, size_t len)
static wchar_t * findLastOfSet(wchar_t *haystack, const wchar_t *set)
static int32_t compareVersions(const wchar_t *str1, const wchar_t *str2)
static void replace(wchar_t *str, wchar_t oldchar, wchar_t newchar)
static wchar_t * findEndOfQuotedString(wchar_t *string, wchar_t quote, bool backslash, bool doubling)
static const wchar_t * findLastOfSet(const wchar_t *haystack, const wchar_t *set)
static bool isInSet(const wchar_t *str, const wchar_t *const *set)
static long double convertToFloat(const wchar_t *string)
static bool compareWithWildcards(const wchar_t *string, size_t stringlength, const wchar_t *pattern, wchar_t singlewildcard, wchar_t multiwildcard)
static bool contains(const wchar_t *haystack, wchar_t needle)
static wchar_t * parseNumber(long double number)
static const wchar_t * findFirstOrEndIgnoringCase(const wchar_t *haystack, const wchar_t *needle)
static long double convertToFloatC(const wchar_t *string)
static wchar_t * duplicateUcs2(const ucs2_t *str, wchar_t replacement, bool bigendian)
static bool containsIgnoringCase(const wchar_t *haystack, wchar_t needle)
static wchar_t * duplicate(const wchar_t *str)
static wchar_t * duplicateUcs2(const ucs2_t *str, size_t len)
static int32_t compareNatural(const wchar_t *str1, const wchar_t *str2, const wchar_t *delimiters)
static uint64_t convertToUnsignedInteger(const wchar_t *string, int32_t base)
static wchar_t * findFirst(wchar_t *haystack, wchar_t needle)
static wchar_t * getSubString(const wchar_t *str, size_t start)
static wchar_t * append(wchar_t *dest, double number, uint16_t precision, uint16_t scale)
static bool isNo(const wchar_t *string)
static bool isNullOrEmpty(const wchar_t *string)
static int64_t convertToInteger(const wchar_t *string, const wchar_t **endptr)
static wchar_t * append(wchar_t *dest, double number)
static wchar_t * getHumanReadable(int64_t number, bool onethousand)
static const wchar_t * findFirst(const wchar_t *haystack, wchar_t needle)
static uint16_t getIntegerLength(uint64_t number)
static wchar_t * parseNumber(uint64_t number, uint16_t zeropadding)
static wchar_t * convertAmount(int64_t amount, uint16_t padding)
static int32_t compareIgnoringCase(const wchar_t *str1, const wchar_t *str2)
static wchar_t * parseNumber(long double number, uint16_t precision, uint16_t scale)
static wchar_t * findEndOfQuotedString(wchar_t *string, size_t stringlen, bool backslash, bool doubling)
static wchar_t * getHumanReadable(long double number, bool onethousand)
static void leftJustify(wchar_t *str, int32_t len)
static const wchar_t * findLast(const wchar_t *haystack, wchar_t needle)
static wchar_t * copy(wchar_t *dest, const wchar_t *source)
static wchar_t * replaceIgnoringCase(const wchar_t *str, const wchar_t *const *oldstrset, size_t *oldstrlen, const wchar_t *const *newstrset)
static bool isInSetIgnoringCase(const wchar_t *str, const wchar_t *const *set)
static wchar_t * findFirstOfSet(wchar_t *haystack, const wchar_t *set)
static wchar_t * safeCopy(wchar_t *dest, size_t destlen, const wchar_t *source, size_t sourcelen)
static wchar_t * append(wchar_t *dest, const wchar_t *source)
static void replaceIgnoringCase(wchar_t *str, wchar_t oldchar, wchar_t newchar)
static const wchar_t * findFirstIgnoringCase(const wchar_t *haystack, const wchar_t *needle)
static const wchar_t * findEndOfQuotedString(const wchar_t *string, size_t stringlen, wchar_t quote, bool backslash, bool doubling)
static void capitalize(wchar_t *str)
static bool isInteger(const wchar_t *val)
static wchar_t * parseNumber(int16_t number)
static wchar_t * parseNumber(int64_t number, uint16_t zeropadding)
static bool endsWith(const wchar_t *haystack, const wchar_t *needle)
static int64_t convertToInteger(const wchar_t *string, int32_t base)
static wchar_t * parseNumber(uint16_t number)
static wchar_t * pad(const wchar_t *string, wchar_t padchar, int16_t direction, uint64_t totallength)
static wchar_t * findLast(wchar_t *haystack, const wchar_t *needle)
static wchar_t * duplicate(const char *str)
static void bothTrim(wchar_t *str)
static bool stripSet(wchar_t *str1, const wchar_t *set)
static wchar_t * parseNumber(long double number, uint16_t scale)
static wchar_t * findEndOfQuotedString(wchar_t *string, bool backslash, bool doubling)
static bool compareWithWildcards(const wchar_t *string, size_t stringlength, const wchar_t *pattern, size_t patternlength, wchar_t singlewildcard, wchar_t multiwildcard)
static const wchar_t * findEndOfQuotedString(const wchar_t *string, wchar_t quote, bool backslash, bool doubling)
static void upper(wchar_t *str)
static wchar_t * findFirstIgnoringCase(wchar_t *haystack, wchar_t needle)
static const wchar_t * findFirstOrEndIgnoringCase(const wchar_t *haystack, wchar_t needle)
static ssize_t printf(wchar_t **buffer, const wchar_t *format,...)
static wchar_t * getHumanReadable(uint64_t number, bool onethousand)
static wchar_t * parseNumber(float number, uint16_t scale)
static ssize_t printf(wchar_t **buffer, const wchar_t *format, va_list *argp)
static wchar_t * isBefore(const wchar_t *str, const wchar_t *delimiter)
static void split(const wchar_t *string, const wchar_t *delimiter, size_t delimiterlength, bool collapse, wchar_t ***list, uint64_t *listcount)
static const wchar_t * findFirstOfSet(const wchar_t *haystack, const wchar_t *set)
static void leftTrim(wchar_t *str, wchar_t character)
static bool isInteger(const wchar_t *val, int32_t len)
static const wchar_t * findLastIgnoringCase(const wchar_t *haystack, const wchar_t *needle)
static bool strip(wchar_t *str1, const wchar_t *str2)
static const wchar_t * findLastOfSetOrEnd(const wchar_t *haystack, const wchar_t *set)
static const wchar_t * findFirst(const wchar_t *haystack, const wchar_t *needle)
static wchar_t * duplicateUcs2(const ucs2_t *str, size_t len, wchar_t replacement, bool bigendian)
static void unescape(const wchar_t *input, uint64_t inputlen, wchar_t **output, uint64_t *outputlen)
static void split(const wchar_t *string, size_t stringlength, const wchar_t *delimiter, size_t delimiterlength, bool collapse, wchar_t ***list, uint64_t *listcount)
static wchar_t * parseNumber(double number, uint16_t scale)
static wchar_t * append(wchar_t *dest, const wchar_t *source, size_t len)
static uint16_t getIntegerLength(int64_t number)
static bool containsIgnoringCase(const wchar_t *haystack, const wchar_t *needle)
static wchar_t * duplicate(const char *str, size_t len)
static void split(const wchar_t *string, size_t stringlength, const wchar_t *delimiter, bool collapse, wchar_t ***list, uint64_t *listcount)
static void zero(wchar_t *str, size_t len)