4#ifndef RUDIMENTS_UCS2CHARSTRING_H
5#define RUDIMENTS_UCS2CHARSTRING_H
7#include <rudiments/private/ucs2charstringincludes.h>
9#define ucs2literal(___ucs2charstrvar,___charstrvar) \
10 ucs2_t ___ucs2charstrvar##array[sizeof(___charstrvar)/sizeof(char)]; \
12 const char *___charstrptr=___charstrvar; \
13 ucs2_t *___ucs2strptr=___ucs2charstrvar##array; \
14 while (*___charstrptr) { \
15 *___ucs2strptr=(ucs2_t)(*___charstrptr); \
19 *___ucs2strptr=(ucs2_t)'\0'; \
21 const ucs2_t *___ucs2charstrvar=___ucs2charstrvar##array
201 const ucs2_t *delimiters);
219 const ucs2_t *delimiters);
286 const ucs2_t *
const *set);
293 const ucs2_t *
const *set);
1415 size_t start,
size_t end);
1569 #include <rudiments/private/ucs2charstring.h>
Definition character.h:11
Definition ucs2charstring.h:25
static ucs2_t * getHumanReadable(long double number)
static ucs2_t * duplicate(const wchar_t *str, size_t len, bool bigendian)
static void rightJustify(ucs2_t *str, int32_t len)
static ucs2_t * convertAmount(int64_t amount, uint16_t padding)
static ucs2_t * escape(const ucs2_t *input, const ucs2_t *characters)
static void zero(ucs2_t *str, size_t len)
static ucs2_t * isBefore(const ucs2_t *str, const ucs2_t *delimiter)
static const ucs2_t * findFirstOrEndIgnoringCase(const ucs2_t *haystack, ucs2_t needle)
static const ucs2_t * findLastOfSetOrEnd(const ucs2_t *haystack, const ucs2_t *set)
static ucs2_t * append(ucs2_t *dest, int64_t number)
static ucs2_t * duplicate(const ucs2_t *str, size_t len)
static long double convertToFloatC(const ucs2_t *string)
static bool compareWithWildcards(const ucs2_t *string, const ucs2_t *pattern, ucs2_t singlewildcard, ucs2_t multiwildcard)
static ucs2_t * duplicate(const wchar_t *str, ucs2_t replacement)
static ucs2_t * findLastIgnoringCase(ucs2_t *haystack, const ucs2_t *needle)
static ucs2_t * findFirst(ucs2_t *haystack, ucs2_t needle)
static ucs2_t * getHumanReadable(long double number, bool onethousand)
static void replaceIgnoringCase(ucs2_t *str, ucs2_t oldchar, ucs2_t newchar)
static uint64_t convertToUnsignedInteger(const ucs2_t *string, const ucs2_t **endptr, int32_t base)
static ucs2_t * duplicate(const char *str, bool bigendian)
static ucs2_t * parseNumber(int32_t number)
static ssize_t printf(ucs2_t **buffer, const ucs2_t *format, va_list *argp)
static bool isInteger(const ucs2_t *val)
static bool isInSetIgnoringCase(const ucs2_t *str, const ucs2_t *const *set)
static ssize_t printf(ucs2_t *buffer, size_t len, const ucs2_t *format,...)
static ucs2_t * replaceIgnoringCase(const ucs2_t *str, const ucs2_t *const *oldstrset, const ucs2_t *const *newstrset)
static bool isNo(const ucs2_t *string)
static void escape(const ucs2_t *input, uint64_t inputlength, ucs2_t **output, uint64_t *outputlength, const ucs2_t *characters)
static void unescape(const ucs2_t *input, uint64_t inputlength, ucs2_t **output, uint64_t *outputlength)
static ucs2_t * findFirstOrEndIgnoringCase(ucs2_t *haystack, const ucs2_t *needle)
static void replaceIgnoringCase(ucs2_t *str, const ucs2_t *oldchars, ucs2_t newchar)
static uint16_t getIntegerLength(int32_t number)
static bool contains(const ucs2_t *haystack, const ucs2_t *needle)
static ucs2_t * parseNumber(long double number)
static uint64_t convertToUnsignedInteger(const ucs2_t *string, const ucs2_t **endptr)
static ucs2_t * duplicate(const wchar_t *str, size_t len, ucs2_t replacement, bool bigendian)
static ucs2_t * findLast(ucs2_t *haystack, const ucs2_t *needle)
static ucs2_t * replace(const ucs2_t *str, const ucs2_t *const *oldstrset, size_t *oldstrlen, const ucs2_t *const *newstrset)
static ucs2_t * findFirstIgnoringCase(ucs2_t *haystack, const ucs2_t *needle)
static bool isYes(const ucs2_t *string)
static bool compareWithWildcards(const ucs2_t *string, const ucs2_t *pattern, size_t patternlength, ucs2_t singlewildcard, ucs2_t multiwildcard)
static uint64_t convertToUnsignedInteger(const ucs2_t *string)
static ucs2_t * duplicate(const ucs2_t *str)
static long double convertToFloat(const ucs2_t *string)
static int32_t compareVersions(const ucs2_t *str1, const ucs2_t *str2, const ucs2_t *delimiters)
static const ucs2_t * findEndOfQuotedString(const ucs2_t *string, size_t stringlen, bool backslash, bool doubling)
static const ucs2_t * findEndOfQuotedString(const ucs2_t *string, size_t stringlen, ucs2_t quote, bool backslash, bool doubling)
static ucs2_t * findLastOfSet(ucs2_t *haystack, const ucs2_t *set)
static ucs2_t * parseNumber(int64_t number, uint16_t zeropadding)
static const ucs2_t * findFirstOrEnd(const ucs2_t *haystack, ucs2_t needle)
static ucs2_t * parseNumber(int16_t number, uint16_t zeropadding)
static bool strip(ucs2_t *str1, const ucs2_t *str2)
static void replace(ucs2_t *str, ucs2_t oldchar, ucs2_t newchar)
static ucs2_t * parseNumber(float number, uint16_t scale)
static int32_t compare(const ucs2_t *str1, const ucs2_t *str2)
static ucs2_t * findEndOfQuotedString(ucs2_t *string, size_t stringlen, bool backslash, bool doubling)
static void replace(ucs2_t *str, const ucs2_t *oldchars, ucs2_t newchar)
static ucs2_t * findFirstOfSet(ucs2_t *haystack, const ucs2_t *set)
static ucs2_t * copy(ucs2_t *dest, const ucs2_t *source)
static int32_t compareNatural(const ucs2_t *str1, const ucs2_t *str2, const ucs2_t *delimiters)
static ucs2_t * parseNumber(long double number, uint16_t precision, uint16_t scale)
static int64_t convertToInteger(const ucs2_t *string)
static ucs2_t * getSubString(const ucs2_t *str, size_t start)
static ucs2_t * parseNumber(double number, uint16_t precision, uint16_t scale)
static ssize_t printf(ucs2_t *buffer, size_t len, const ucs2_t *format, va_list *argp)
static const ucs2_t * findLast(const ucs2_t *haystack, ucs2_t needle)
static int32_t compareNatural(const ucs2_t *str1, const ucs2_t *str2)
static const ucs2_t * findLastIgnoringCase(const ucs2_t *haystack, const ucs2_t *needle)
static ucs2_t * getHumanReadable(int64_t number)
static ucs2_t * duplicate(const wchar_t *str, size_t len)
static bool containsIgnoringCase(const ucs2_t *haystack, const ucs2_t *needle)
static bool strip(ucs2_t *str, ucs2_t character)
static uint16_t getIntegerLength(int64_t number)
static uint64_t convertToUnsignedInteger(const ucs2_t *string, int32_t base)
static ucs2_t * duplicate(const char *str)
static ucs2_t * parseNumber(float number, uint16_t precision, uint16_t scale)
static void lower(ucs2_t *str)
static ucs2_t * duplicate(const char *str, size_t len)
static ucs2_t * parseNumber(uint32_t number, uint16_t zeropadding)
static ucs2_t * parseNumber(uint64_t number, uint16_t zeropadding)
static ucs2_t * duplicate(const wchar_t *str, ucs2_t replacement, bool bigendian)
static bool compareWithWildcards(const ucs2_t *string, size_t stringlength, const ucs2_t *pattern, size_t patternlength, ucs2_t singlewildcard, ucs2_t multiwildcard)
static size_t getSize(const ucs2_t *string)
static const ucs2_t * findFirstOrEndIgnoringCase(const ucs2_t *haystack, const ucs2_t *needle)
static uint16_t getIntegerLength(uint16_t number)
static ucs2_t * findLast(ucs2_t *haystack, ucs2_t needle)
static ucs2_t * append(ucs2_t *dest, const ucs2_t *source, size_t len)
static bool stripSet(ucs2_t *str1, const ucs2_t *set)
static ucs2_t * safeCopy(ucs2_t *dest, size_t destlen, const ucs2_t *source)
static ucs2_t * getSubString(const ucs2_t *str, size_t start, size_t end)
static ucs2_t * append(ucs2_t *dest, const ucs2_t *source)
static void capitalize(ucs2_t *str)
static ucs2_t * replaceIgnoringCase(const ucs2_t *str, const ucs2_t *const *oldstrset, size_t *oldstrlen, const ucs2_t *const *newstrset)
static const ucs2_t * findLastIgnoringCase(const ucs2_t *haystack, ucs2_t needle)
static ucs2_t * copy(ucs2_t *dest, size_t location, const ucs2_t *source, size_t len)
static ucs2_t * findLastOfSetOrEnd(ucs2_t *haystack, const ucs2_t *set)
static ucs2_t * duplicate(const char *str, size_t len, bool bigendian)
static const ucs2_t * findLastOfSet(const ucs2_t *haystack, const ucs2_t *set)
static const ucs2_t * findLast(const ucs2_t *haystack, const ucs2_t *needle)
static ucs2_t * replace(const ucs2_t *str, const ucs2_t *oldstr, const ucs2_t *newstr)
static size_t getLength(const ucs2_t *string)
static int32_t compare(const ucs2_t *str1, const ucs2_t *str2, size_t length)
static ucs2_t * pad(const ucs2_t *string, ucs2_t padchar, int16_t direction, uint64_t totallength)
static ucs2_t * insertString(const ucs2_t *dest, const ucs2_t *src, uint64_t index)
static const ucs2_t * findFirstIgnoringCase(const ucs2_t *haystack, ucs2_t needle)
static const ucs2_t * findFirstOfSet(const ucs2_t *haystack, const ucs2_t *set)
static bool endsWith(const ucs2_t *haystack, const ucs2_t *needle)
static uint16_t getIntegerLength(uint64_t number)
static bool isNumber(const ucs2_t *val)
static long double convertToFloat(const ucs2_t *string, const ucs2_t **endptr)
static int32_t compareIgnoringCase(const ucs2_t *str1, const ucs2_t *str2, size_t len)
static bool isByteOrderMark(const ucs2_t *str)
static ucs2_t * isBetween(const ucs2_t *str, const ucs2_t *start, const ucs2_t *end)
static bool isNullOrEmpty(const ucs2_t *string)
static ucs2_t * getHumanReadable(int64_t number, bool onethousand)
static ucs2_t * append(ucs2_t *dest, double number, uint16_t precision, uint16_t scale)
static ucs2_t * findEndOfQuotedString(ucs2_t *string, bool backslash, bool doubling)
static void leftTrim(ucs2_t *str)
static int64_t convertAmount(const ucs2_t *amount)
static const ucs2_t * findEndOfQuotedString(const ucs2_t *string, ucs2_t quote, bool backslash, bool doubling)
static ucs2_t * duplicate(const wchar_t *str)
static ucs2_t * append(ucs2_t *dest, double number, uint16_t scale)
static ucs2_t * getHumanReadable(uint64_t number)
static ucs2_t * append(ucs2_t *dest, uint64_t number)
static size_t getLengthContainingSet(const ucs2_t *haystack, const ucs2_t *set)
static uint16_t getIntegerLength(uint32_t number)
static void rightTrim(ucs2_t *str)
static bool isInteger(const ucs2_t *val, int32_t len)
static void split(const ucs2_t *string, size_t stringlength, const ucs2_t *delimiter, size_t delimiterlength, bool collapse, ucs2_t ***list, uint64_t *listcount)
static ssize_t printf(ucs2_t **buffer, const ucs2_t *format,...)
static ucs2_t * replace(const ucs2_t *str, const ucs2_t *const *oldstrset, const ucs2_t *const *newstrset)
static ucs2_t * getHumanReadable(uint64_t number, bool onethousand)
static ucs2_t * findLastIgnoringCase(ucs2_t *haystack, ucs2_t needle)
static int32_t compareIgnoringCase(const ucs2_t *str1, const ucs2_t *str2)
static ucs2_t * parseNumber(uint64_t number)
static void bothTrim(ucs2_t *str, ucs2_t character)
static ucs2_t * replaceIgnoringCase(const ucs2_t *str, const ucs2_t *oldstr, const ucs2_t *newstr)
static void bothTrim(ucs2_t *str)
static ucs2_t * parseNumber(int64_t number)
static ucs2_t * unescape(const ucs2_t *input)
static ucs2_t * parseNumber(uint16_t number, uint16_t zeropadding)
static ucs2_t * findEndOfQuotedString(ucs2_t *string, size_t stringlen, ucs2_t quote, bool backslash, bool doubling)
static ucs2_t * duplicate(const wchar_t *str, size_t len, ucs2_t replacement)
static ucs2_t * parseNumber(int16_t number)
static ucs2_t * findFirstIgnoringCase(ucs2_t *haystack, ucs2_t needle)
static const ucs2_t * findFirstOrEnd(const ucs2_t *haystack, const ucs2_t *needle)
static size_t getLengthNotContainingSet(const ucs2_t *haystack, const ucs2_t *set)
static uint16_t getIntegerLength(int16_t number)
static ucs2_t * safeCopy(ucs2_t *dest, size_t destlen, const ucs2_t *source, size_t sourcelen)
static void leftJustify(ucs2_t *str, int32_t len)
static bool isInSet(const ucs2_t *str, const ucs2_t *const *set)
static ucs2_t * parseNumber(double number, uint16_t scale)
static void upper(ucs2_t *str)
static ucs2_t * parseNumber(uint16_t number)
static ucs2_t * parseNumber(int32_t number, uint16_t zeropadding)
static ucs2_t * parseNumber(uint32_t number)
static const ucs2_t * findEndOfQuotedString(const ucs2_t *string, bool backslash, bool doubling)
static ucs2_t * findEndOfQuotedString(ucs2_t *string, ucs2_t quote, bool backslash, bool doubling)
static int64_t convertToInteger(const ucs2_t *string, int32_t base)
static bool contains(const ucs2_t *haystack, ucs2_t needle)
static ucs2_t * append(ucs2_t *dest, double number)
static void center(ucs2_t *str, int32_t len)
static bool supportsPrintf()
static ucs2_t * copy(ucs2_t *dest, size_t location, const ucs2_t *source)
static bool isBigEndian(const ucs2_t *str)
static void split(const ucs2_t *string, const ucs2_t *delimiter, size_t delimiterlength, bool collapse, ucs2_t ***list, uint64_t *listcount)
static ucs2_t * parseNumber(float number)
static int64_t convertToInteger(const ucs2_t *string, const ucs2_t **endptr)
static void split(const ucs2_t *string, size_t stringlength, const ucs2_t *delimiter, bool collapse, ucs2_t ***list, uint64_t *listcount)
static const ucs2_t * findFirst(const ucs2_t *haystack, ucs2_t needle)
static ucs2_t * findFirstOrEnd(ucs2_t *haystack, const ucs2_t *needle)
static int64_t convertToInteger(const ucs2_t *string, const ucs2_t **endptr, int32_t base)
static ucs2_t * findFirst(ucs2_t *haystack, const ucs2_t *needle)
static ucs2_t * convertAmount(int64_t amount)
static bool containsIgnoringCase(const ucs2_t *haystack, ucs2_t needle)
static const ucs2_t * findFirstIgnoringCase(const ucs2_t *haystack, const ucs2_t *needle)
static ucs2_t * parseNumber(double number)
static bool isNumber(const ucs2_t *val, int32_t len)
static bool startsWith(const ucs2_t *haystack, const ucs2_t *needle)
static ucs2_t * findFirstOfSetOrEnd(ucs2_t *haystack, const ucs2_t *set)
static ucs2_t * copy(ucs2_t *dest, const ucs2_t *source, size_t len)
static const ucs2_t * findFirst(const ucs2_t *haystack, const ucs2_t *needle)
static void split(const ucs2_t *string, const ucs2_t *delimiter, bool collapse, ucs2_t ***list, uint64_t *listcount)
static bool compareWithWildcards(const ucs2_t *string, size_t stringlength, const ucs2_t *pattern, ucs2_t singlewildcard, ucs2_t multiwildcard)
static ucs2_t * parseNumber(long double number, uint16_t scale)
static int32_t compareVersions(const ucs2_t *str1, const ucs2_t *str2)
static const ucs2_t * findFirstOfSetOrEnd(const ucs2_t *haystack, const ucs2_t *set)
static ucs2_t * isAfter(const ucs2_t *str, const ucs2_t *delimiter)
static ucs2_t * duplicate(const wchar_t *str, bool bigendian)
static void leftTrim(ucs2_t *str, ucs2_t character)
static void rightTrim(ucs2_t *str, ucs2_t character)