System.WideStrUtils

From Appmethod Libraries
Jump to: navigation, search


Routines

AnsiToUtf8ExConverts a string encoded in ANSI to UTF-8 with a given code page.
ConvertStreamFromAnsiToUTF8Converts a stream from ANSI to UTF-8 encoding.
ConvertStreamFromUTF8ToAnsiConverts a stream from UTF-8 to ANSI encoding.
DetectUTF8EncodingDetects the encoding of a given RawByteString.
HasExtendCharacterChecks whether the string contains non-ASCII characters.
HasUTF8BOMDetects if a string or a stream contains the UTF-8 byte-order mark.
InOpArrayChecks if a WideChar is contained in a given array.
InOpSetChecks if a WideChar is contained in a given set.
IsUTF8LeadByteChecks whether a character is a valid UTF-8 lead byte.
IsUTF8StringDetects if a given string is UTF-8 encoded.
IsUTF8TrailByteChecks whether a character is a valid UTF-8 trail byte.
LoadResWideStringLoads a WideString resource.
LoadWideStrLoads a WideString resource.
UTF8CharLengthReturns the number of bytes that follow a lead UTF-8 byte.
UTF8CharSizeReturns the number of bytes that follow a lead UTF-8 byte.
UTF8LowerCaseReturns the UTF-8 string converted to lower case.
Utf8ToAnsiExConverts a string encoded in UTF-8 to ANSI with a given code page.
UTF8UpperCaseReturns the UTF-8 string converted to uppercase.
WideAdjustLineBreaksAdjusts line break characters in a WideString to reflect Windows or Linux style.
WideDequotedStrConverts a quoted WideString into an unquoted WideString.
WideExtractQuotedStrConverts a quoted PWideChar into an unquoted WideString.
WideLastCharGets last character in a WideString.
WideQuotedStrReturns the quoted version of a WideString.
WideReplaceStrReplaces all occurrences of a substring within a string, using case-sensitive search.
WideReplaceTextReplaces all occurrences of a substring in a WideString.
WideStringReplaceReplaces occurrences of a substring within a string.
WStrAllocAllocates a buffer for a PWideChar and returns a pointer to its first character.
WStrBufSizeReturns the maximum number of characters that can be stored in a PWideChar allocated by WStrAlloc.
WStrCatAppends a PWideChar to another PWideChar.
WStrCompCompares two PWideChar values with case sensitivity.
WStrCopyCopies a PWideChar to another PWideChar.
WStrDisposeDisposes of a PWideChar.
WStrEndReturns a pointer to the end of a PWideChar.
WStrLCopyCopies up to a specified maximum number of PWideChar characters from a source to a destination.
WStrLenReturns number of characters in a PWideChar excluding the null terminator.
WStrMoveCopies a specified number of characters from a PWideChar to another PWideChar.
WStrNewAllocates space on and copies a PWideChar to the heap, returning a new PWideChar.
WStrPCopyCopies a WideString to a PWideChar.
WStrPLCopyCopies characters from a WideString into a PWideChar.
WStrPosReturns a pointer to the first occurrence of a PWideChar in another PWideChar.
WStrScanReturns a pointer to the first occurrence of a specified character in a PWideChar.

Types

CharSetRepresents a set of allowed characters.
TEncodeTypeDefines a list of encodings.

Variables

sUTF8BOMStringRepresents the UTF-8 byte-order mark.