Simple Unicode string class for use in the dtSearch C++ Support classes and sample code.
File
File: dstring.h
Namespace: dtSearch
Syntax
Group
Members
Operators
Operator |
Description |
---|---|
Append a single character | |
Append a single-byte string without conversion | |
Format an integer value as a string and append the string | |
Format an integer value as a string and append the string | |
Append a single character | |
Append a single character | |
Append a single character | |
Append a string | |
Copy a string | |
Copy a string | |
Copy a string | |
Returns start of the Unicode buffer |
Methods
Method |
Description |
---|---|
Construct an empty Unicode string | |
Construct a Unicode string from another Unicode string | |
Construct a Unicode string from UTF-8 text | |
Construct an empty Unicode string, specifying the initial length of the bfufer | |
Construct an empty Unicode string, using a pre-existing buffer | |
Construct a Unicode string from Unicode text | |
Append Unicode text to the string | |
Append a single character | |
! Append without null-termination for faster building of strings | |
Clear all text in the string | |
Determine whether a characters exists in this string | |
Determine whether a substring is contained in this string | |
Copy a string | |
Extend the string buffer to a minimum length | |
Find a character | |
Find a substring | |
First character in the string, or null if the string is empty | |
Get one character | |
Read Unicode text from a file | |
Read contents of a file as Unicode | |
Returns the number of characters in the string | |
Convert the string to UTF-8 | |
Format a time as HHHH/MM/SS | |
Determine whether a substring is contained in this string (case-insensitive) | |
Find a substring (case-insensitive) | |
Insert characters in front of the string | |
Returns true if the string is empty or contains only whitespace | |
Returns true if the string is empty or contains only whitespace, checking for Unicode whitespace | |
Returns the last character in the string, or null if the string is empty | |
! Null-terminate the string (use after calling appendCharNT) | |
Remove leading whitespace and pack all other whitespace to a single space character | |
Fill string with a character | |
Remove a range of characters from the string | |
Find a character, starting at the end of the string | |
Remove leading whitespace | |
Remove trailing whitespace | |
Get one character | |
Set the length of the string, null-terminating the contents of the buffer | |
Transfer nChars of Unicode text from another buffer | |
Store characters known to be in the range 1..128 without conversion | |
Store UTF-8 text as Unicode, replacing any contents in the string | |
Convert to lower case | |
Convert to upper case | |
Remove leading and trailing whitespace | |
Truncate the string | |
Try to extend the string buffer to a minimum length, and return false if unsuccessful | |
Write Unicode text to a file | |
Write Unicode text to a file | |
Format a date as YYYY/MM/DD |
Methods
Method |
Description |
---|---|
Construct an empty Unicode string | |
Construct a Unicode string from another Unicode string | |
Construct a Unicode string from UTF-8 text | |
Construct an empty Unicode string, specifying the initial length of the bfufer | |
Construct an empty Unicode string, using a pre-existing buffer | |
Construct a Unicode string from Unicode text | |
Append Unicode text to the string | |
Append a single character | |
! Append without null-termination for faster building of strings | |
Clear all text in the string | |
Determine whether a characters exists in this string | |
Determine whether a substring is contained in this string | |
Copy a string | |
Extend the string buffer to a minimum length | |
Find a character | |
Find a substring | |
First character in the string, or null if the string is empty | |
Get one character | |
Read Unicode text from a file | |
Read contents of a file as Unicode | |
Returns the number of characters in the string | |
Convert the string to UTF-8 | |
Format a time as HHHH/MM/SS | |
Determine whether a substring is contained in this string (case-insensitive) | |
Find a substring (case-insensitive) | |
Insert characters in front of the string | |
Returns true if the string is empty or contains only whitespace | |
Returns true if the string is empty or contains only whitespace, checking for Unicode whitespace | |
Returns the last character in the string, or null if the string is empty | |
! Null-terminate the string (use after calling appendCharNT) | |
Remove leading whitespace and pack all other whitespace to a single space character | |
Fill string with a character | |
Remove a range of characters from the string | |
Find a character, starting at the end of the string | |
Remove leading whitespace | |
Remove trailing whitespace | |
Get one character | |
Set the length of the string, null-terminating the contents of the buffer | |
Transfer nChars of Unicode text from another buffer | |
Store characters known to be in the range 1..128 without conversion | |
Store UTF-8 text as Unicode, replacing any contents in the string | |
Convert to lower case | |
Convert to upper case | |
Remove leading and trailing whitespace | |
Truncate the string | |
Try to extend the string buffer to a minimum length, and return false if unsuccessful | |
Write Unicode text to a file | |
Write Unicode text to a file | |
Format a date as YYYY/MM/DD |
Operators
Operator |
Description |
---|---|
Append a single character | |
Append a single-byte string without conversion | |
Format an integer value as a string and append the string | |
Format an integer value as a string and append the string | |
Append a single character | |
Append a single character | |
Append a single character | |
Append a string | |
Copy a string | |
Copy a string | |
Copy a string | |
Returns start of the Unicode buffer |
Class Hierarchy
dtSearch::DWString