Filename class for use in the dtSearch C++ Support classes and sample code.
File: dstring.h
Namespace: dtSearch
|
Name |
Description |
![]() |
Construct an empty filename | |
![]() |
Construct a filename from another filename | |
![]() |
Construct a filename from a string | |
![]() |
Make a DString from a buffer (Inherited from DString) | |
![]() |
Make a DString from a buffer keeping the text (Inherited from DString) | |
![]() | ||
![]() | ||
![]() | ||
![]() |
Constructor, specifying the initial size of the string buffer (Inherited from DString) |
|
Name |
Description |
![]() |
Returns false if this string equals the other string, using strcmp (Inherited from DString) | |
![]() |
Returns false if this string equals the other string, using strcmp (Inherited from DString) | |
![]() |
Append an integer to a string (Inherited from DString) | |
![]() |
Append a single character (Inherited from DString) | |
![]() |
Append a string (Inherited from DString) | |
![]() |
Append a string (Inherited from DString) | |
![]() |
Append a double to a string (Inherited from DString) | |
![]() |
Append an integer to a string (Inherited from DString) | |
![]() |
Append an integer to a string (Inherited from DString) | |
![]() |
Append an integer to a string (Inherited from DString) | |
![]() |
Append a single unsigned character (Inherited from DString) | |
![]() |
Append an integer to a string (Inherited from DString) | |
![]() |
Append an integer to a string (Inherited from DString) | |
![]() | ||
![]() |
Copy a filename | |
![]() |
Copy a filename | |
![]() |
Copy another string (Inherited from DString) | |
![]() |
Store a string as a filename | |
![]() |
Copy another string (Inherited from DString) | |
![]() |
Copy another string (Inherited from DString) | |
![]() |
Store a Unicode string as a filename | |
![]() | ||
![]() |
Returns true if this string equals the other string, using strcmp (Inherited from DString) | |
![]() |
Returns true if this string equals the other string, using strcmp (Inherited from DString) | |
![]() |
Returns a pointer to the internal buffer holding the string (Inherited from DString) |
|
Name |
Description |
![]() |
Construct an empty filename | |
![]() |
Construct a filename from another filename | |
![]() |
Construct a filename from a string | |
![]() |
Make a DString from a buffer (Inherited from DString) | |
![]() |
Make a DString from a buffer keeping the text (Inherited from DString) | |
![]() | ||
![]() | ||
![]() | ||
![]() |
Constructor, specifying the initial size of the string buffer (Inherited from DString) |
|
Name |
Description |
![]() |
Append a filename to the path in the string, adding a slash if necessary | |
![]() | ||
![]() |
Convert encoding from Ansi to Utf8 (Inherited from DString) | |
![]() |
Append text to a string (Inherited from DString) | |
![]() |
Append a single character (Inherited from DString) | |
![]() |
Append without null-termination for faster building of strings (Inherited from DString) | |
![]() |
Add extension to the filename | |
![]() |
Append text, HTML-encoding it. If bAllowTags, then newline will be stored using a BR tag. (Inherited from DString) | |
![]() |
Append a string without null-termination for faster building of strings (Inherited from DString) | |
![]() |
Store Unicode text, converting it to UTF-8, appending to an existing string (Inherited from DString) | |
![]() |
Append text, URL-encoding it (Inherited from DString) | |
![]() |
Append text, URL-encoding it but preserving filename characters (Inherited from DString) | |
![]() |
Convert only A-Z to lower case (Inherited from DString) | |
![]() |
Convert only a-z to upper case (Inherited from DString) | |
![]() | ||
![]() |
Append an integer, using commas to format the number (so 12345 would be appended as 12,345) (Inherited from DString) | |
![]() |
Append an integer, using commas to format the number (so 12345 would be appended as 12,345) (Inherited from DString) | |
![]() |
Append an integer, using commas to format the number (so 12345 would be appended as 12,345) (Inherited from DString) | |
![]() |
Append an integer, using commas to format the number (so 12345 would be appended as 12,345) (Inherited from DString) | |
![]() |
Append an integer, using commas to format the number (so 12345 would be appended as 12,345) (Inherited from DString) | |
![]() |
Returns true if char occurs in the string (Inherited from DString) | |
![]() | ||
![]() |
Copy another string (Inherited from DString) | |
![]() |
Find a character, starting at the front of the string (Inherited from DString) | |
![]() |
Find a substring, with an optional starting offset (Inherited from DString) | |
![]() | ||
![]() |
First character in the string, or null if the string is empty (Inherited from DString) | |
![]() |
Get character at a specified position in the string (Inherited from DString) | |
![]() |
Get current working directory | |
![]() |
Get the extension from the filename in the path | |
![]() |
Read the contents of a file into a text buffer, automatically converting UCS-16 to UTF-8 (Inherited from DString) | |
![]() |
Read the contents of a file into a text buffer, automatically converting UCS-16 to UTF-8 (UTF-8 filename) (Inherited from DString) | |
![]() |
Get the contents of a string returned from the dtSearch Engine as a dtsStringHandle (Inherited from DString) | |
![]() |
Read the contents of a file into a text buffer (UTF8 filename) (Inherited from DString) | |
![]() |
Read the contents of a file into a text buffer (TCHAR filename) (Inherited from DString) | |
![]() |
Returns the length of the string (Inherited from DString) | |
![]() | ||
![]() |
Get the folder name from a path | |
![]() |
Extract the path portion of a URL | |
![]() |
Get the slash type for a filename (backslash or slash). If the name does not contain a slash, returns the default slash type for the platform (cSysSlash) | |
![]() |
Get the filename from the string (for example, "sample.doc" if the string is "/tmp/subfolder/sample.doc") | |
![]() |
Return true if filename has an extension | |
![]() |
Append an integer formatted as a hexadecimal number without zero-padding (Inherited from DString) | |
![]() |
Append an integer formatted as a hexadecimal number without zero-padding (Inherited from DString) | |
![]() |
Append an integer formatted as a hexadecimal number without zero-padding (Inherited from DString) | |
![]() |
Append an integer formatted as a hexadecimal number without zero-padding (Inherited from DString) | |
![]() |
Append an integer formatted as a hexadecimal number without zero-padding (Inherited from DString) | |
![]() |
Append an integer formatted as a hexadecimal number without zero-padding (Inherited from DString) | |
![]() |
Append an integer formatted as a hexadecimal number without zero-padding (Inherited from DString) | |
![]() |
Append an integer formatted as a hexadecimal number with zero-padding (Inherited from DString) | |
![]() |
HTML-encode the contents of the string (Inherited from DString) | |
![]() | ||
![]() |
Find a string, with case-insensitive matching (Inherited from DString) | |
![]() |
Insert a character at an offset (Inherited from DString) | |
![]() |
Insert a string at an offset (Inherited from DString) | |
![]() |
Insert text before the extension in a filename | |
![]() |
Replace one string with another, with case-insensitive matching (Inherited from DString) | |
![]() |
Returns true if the string does not contain any non-whitespace characters (Inherited from DString) | |
![]() |
Returns true if the string is a mapped drive | |
![]() |
Returns true if the path is relative | |
![]() |
Returns true if the extension matches the extension of the filename | |
![]() |
Returns true if the string is a UNC path | |
![]() |
Returns true if the string is a URL | |
![]() |
Last character in the string, or null if the string is empty (Inherited from DString) | |
![]() |
Convert the path to an absolute path | |
![]() |
Convert the path to a relative path. | |
![]() |
Generate a temporary filename | |
![]() |
Null-terminate the string (Inherited from DString) | |
![]() |
Fill string with a character, inserting the character in the front of the string (Inherited from DString) | |
![]() |
Fill string with a character (Inherited from DString) | |
![]() |
Remove a range of characters from a string (Inherited from DString) | |
![]() |
Remove all instances of a character (Inherited from DString) | |
![]() |
Replace one character with another (Inherited from DString) | |
![]() |
Replace one string with another (Inherited from DString) | |
![]() |
Reverse characters in place (Inherited from DString) | |
![]() |
Find a character, starting at the end of the string (Inherited from DString) | |
![]() |
Find a string, starting at the end of the string (Inherited from DString) | |
![]() |
Remove leading white space (Inherited from DString) | |
![]() |
Remove leading white space, checking for UTF-8 encoded hard spaces (Inherited from DString) | |
![]() |
Remove the extension | |
![]() |
Remove the folder name from the path | |
![]() |
Remove the last element in the filename | |
![]() |
Remove trailing white space (Inherited from DString) | |
![]() |
Remove trailing white space, checking for UTF-8 encoded hard spaces (Inherited from DString) | |
![]() |
Get an environment variable and return its value (Inherited from DString) | |
![]() |
Store a .NET System::String (Inherited from DString) | |
![]() |
Get character at a specified position in the string. (Inherited from DString) | |
![]() |
Replace the extension in the filename | |
![]() |
Change the folder name | |
![]() |
Change the slash type in the path (for example, from backslash to slash) | |
![]() |
Set text contents (Inherited from DString) | |
![]() |
Remove redundant path elements (example, "/tmp/subfolder/../otherfolder/sample.doc would become "/tmp/otherfolder/sample.doc | |
![]() |
Split the path into a folder name and filename | |
![]() |
Extend will throw std::bad_alloc if memory is insufficient (Inherited from DString) | |
![]() |
Store Unicode text, converting it to Ansi (Inherited from DString) | |
![]() |
Store Unicode text, converting it to Ansi (Inherited from DString) | |
![]() |
Store Unicode text, converting it to UTF-8 (Inherited from DString) | |
![]() |
Store Unicode text, converting it to UTF-8 (Inherited from DString) | |
![]() |
Returns a pointer to the internal buffer holding the string (Inherited from DString) | |
![]() |
Extract a substring from a string (Inherited from DString) | |
![]() |
Convert to lower case (Inherited from DString) | |
![]() |
Convert to upper case (Inherited from DString) | |
![]() | ||
![]() |
Remove all leading and trailing whitespace (Inherited from DString) | |
![]() |
Truncate a string to a specified length (Inherited from DString) | |
![]() |
Truncate string at offset of character (not including the character) (Inherited from DString) | |
![]() |
Truncate string at offset of substring (not including the substring) (Inherited from DString) | |
![]() |
Remove beginning and ending quotation marks if either is present (Inherited from DString) | |
![]() |
Remove beginning and ending quotation marks if either is present (Inherited from DString) | |
![]() |
Remove beginning and ending quotation marks only if both are present (Inherited from DString) | |
![]() |
Remove beginning and ending quotation marks only if both are present (Inherited from DString) | |
![]() |
Decode URL-encoded characters (Inherited from DString) | |
![]() |
Decode URL-encoded characters (Inherited from DString) | |
![]() |
Decode Ansi URL-encoded characters and convert to UTF-8 (Inherited from DString) | |
![]() |
URL-encode the contents of the string (Inherited from DString) | |
![]() |
Returns an unsigned character pointer to the internal buffer holding the string (Inherited from DString) | |
![]() |
Write contents of the string to a file, using a TCHAR filename (Inherited from DString) | |
![]() |
Write contents of the string to a file, using a UTF-8 filename, and throw a DFileException on error (Inherited from DString) | |
![]() |
Write contents of the string to a file, using a UTF-8 filename (Inherited from DString) |
|
Name |
Description |
![]() |
Append a filename to the path in the string, adding a slash if necessary | |
![]() | ||
![]() |
Convert encoding from Ansi to Utf8 (Inherited from DString) | |
![]() |
Append text to a string (Inherited from DString) | |
![]() |
Append a single character (Inherited from DString) | |
![]() |
Append without null-termination for faster building of strings (Inherited from DString) | |
![]() |
Add extension to the filename | |
![]() |
Append text, HTML-encoding it. If bAllowTags, then newline will be stored using a BR tag. (Inherited from DString) | |
![]() |
Append a string without null-termination for faster building of strings (Inherited from DString) | |
![]() |
Store Unicode text, converting it to UTF-8, appending to an existing string (Inherited from DString) | |
![]() |
Append text, URL-encoding it (Inherited from DString) | |
![]() |
Append text, URL-encoding it but preserving filename characters (Inherited from DString) | |
![]() |
Convert only A-Z to lower case (Inherited from DString) | |
![]() |
Convert only a-z to upper case (Inherited from DString) | |
![]() | ||
![]() |
Append an integer, using commas to format the number (so 12345 would be appended as 12,345) (Inherited from DString) | |
![]() |
Append an integer, using commas to format the number (so 12345 would be appended as 12,345) (Inherited from DString) | |
![]() |
Append an integer, using commas to format the number (so 12345 would be appended as 12,345) (Inherited from DString) | |
![]() |
Append an integer, using commas to format the number (so 12345 would be appended as 12,345) (Inherited from DString) | |
![]() |
Append an integer, using commas to format the number (so 12345 would be appended as 12,345) (Inherited from DString) | |
![]() |
Returns true if char occurs in the string (Inherited from DString) | |
![]() | ||
![]() |
Copy another string (Inherited from DString) | |
![]() |
Find a character, starting at the front of the string (Inherited from DString) | |
![]() |
Find a substring, with an optional starting offset (Inherited from DString) | |
![]() | ||
![]() |
First character in the string, or null if the string is empty (Inherited from DString) | |
![]() |
Get character at a specified position in the string (Inherited from DString) | |
![]() |
Get current working directory | |
![]() |
Get the extension from the filename in the path | |
![]() |
Read the contents of a file into a text buffer, automatically converting UCS-16 to UTF-8 (Inherited from DString) | |
![]() |
Read the contents of a file into a text buffer, automatically converting UCS-16 to UTF-8 (UTF-8 filename) (Inherited from DString) | |
![]() |
Get the contents of a string returned from the dtSearch Engine as a dtsStringHandle (Inherited from DString) | |
![]() |
Read the contents of a file into a text buffer (UTF8 filename) (Inherited from DString) | |
![]() |
Read the contents of a file into a text buffer (TCHAR filename) (Inherited from DString) | |
![]() |
Returns the length of the string (Inherited from DString) | |
![]() | ||
![]() |
Get the folder name from a path | |
![]() |
Extract the path portion of a URL | |
![]() |
Get the slash type for a filename (backslash or slash). If the name does not contain a slash, returns the default slash type for the platform (cSysSlash) | |
![]() |
Get the filename from the string (for example, "sample.doc" if the string is "/tmp/subfolder/sample.doc") | |
![]() |
Return true if filename has an extension | |
![]() |
Append an integer formatted as a hexadecimal number without zero-padding (Inherited from DString) | |
![]() |
Append an integer formatted as a hexadecimal number without zero-padding (Inherited from DString) | |
![]() |
Append an integer formatted as a hexadecimal number without zero-padding (Inherited from DString) | |
![]() |
Append an integer formatted as a hexadecimal number without zero-padding (Inherited from DString) | |
![]() |
Append an integer formatted as a hexadecimal number without zero-padding (Inherited from DString) | |
![]() |
Append an integer formatted as a hexadecimal number without zero-padding (Inherited from DString) | |
![]() |
Append an integer formatted as a hexadecimal number without zero-padding (Inherited from DString) | |
![]() |
Append an integer formatted as a hexadecimal number with zero-padding (Inherited from DString) | |
![]() |
HTML-encode the contents of the string (Inherited from DString) | |
![]() | ||
![]() |
Find a string, with case-insensitive matching (Inherited from DString) | |
![]() |
Insert a character at an offset (Inherited from DString) | |
![]() |
Insert a string at an offset (Inherited from DString) | |
![]() |
Insert text before the extension in a filename | |
![]() |
Replace one string with another, with case-insensitive matching (Inherited from DString) | |
![]() |
Returns true if the string does not contain any non-whitespace characters (Inherited from DString) | |
![]() |
Returns true if the string is a mapped drive | |
![]() |
Returns true if the path is relative | |
![]() |
Returns true if the extension matches the extension of the filename | |
![]() |
Returns true if the string is a UNC path | |
![]() |
Returns true if the string is a URL | |
![]() |
Last character in the string, or null if the string is empty (Inherited from DString) | |
![]() |
Convert the path to an absolute path | |
![]() |
Convert the path to a relative path. | |
![]() |
Generate a temporary filename | |
![]() |
Null-terminate the string (Inherited from DString) | |
![]() |
Fill string with a character, inserting the character in the front of the string (Inherited from DString) | |
![]() |
Fill string with a character (Inherited from DString) | |
![]() |
Remove a range of characters from a string (Inherited from DString) | |
![]() |
Remove all instances of a character (Inherited from DString) | |
![]() |
Replace one character with another (Inherited from DString) | |
![]() |
Replace one string with another (Inherited from DString) | |
![]() |
Reverse characters in place (Inherited from DString) | |
![]() |
Find a character, starting at the end of the string (Inherited from DString) | |
![]() |
Find a string, starting at the end of the string (Inherited from DString) | |
![]() |
Remove leading white space (Inherited from DString) | |
![]() |
Remove leading white space, checking for UTF-8 encoded hard spaces (Inherited from DString) | |
![]() |
Remove the extension | |
![]() |
Remove the folder name from the path | |
![]() |
Remove the last element in the filename | |
![]() |
Remove trailing white space (Inherited from DString) | |
![]() |
Remove trailing white space, checking for UTF-8 encoded hard spaces (Inherited from DString) | |
![]() |
Get an environment variable and return its value (Inherited from DString) | |
![]() |
Store a .NET System::String (Inherited from DString) | |
![]() |
Get character at a specified position in the string. (Inherited from DString) | |
![]() |
Replace the extension in the filename | |
![]() |
Change the folder name | |
![]() |
Change the slash type in the path (for example, from backslash to slash) | |
![]() |
Set text contents (Inherited from DString) | |
![]() |
Remove redundant path elements (example, "/tmp/subfolder/../otherfolder/sample.doc would become "/tmp/otherfolder/sample.doc | |
![]() |
Split the path into a folder name and filename | |
![]() |
Extend will throw std::bad_alloc if memory is insufficient (Inherited from DString) | |
![]() |
Store Unicode text, converting it to Ansi (Inherited from DString) | |
![]() |
Store Unicode text, converting it to Ansi (Inherited from DString) | |
![]() |
Store Unicode text, converting it to UTF-8 (Inherited from DString) | |
![]() |
Store Unicode text, converting it to UTF-8 (Inherited from DString) | |
![]() |
Returns a pointer to the internal buffer holding the string (Inherited from DString) | |
![]() |
Extract a substring from a string (Inherited from DString) | |
![]() |
Convert to lower case (Inherited from DString) | |
![]() |
Convert to upper case (Inherited from DString) | |
![]() | ||
![]() |
Remove all leading and trailing whitespace (Inherited from DString) | |
![]() |
Truncate a string to a specified length (Inherited from DString) | |
![]() |
Truncate string at offset of character (not including the character) (Inherited from DString) | |
![]() |
Truncate string at offset of substring (not including the substring) (Inherited from DString) | |
![]() |
Remove beginning and ending quotation marks if either is present (Inherited from DString) | |
![]() |
Remove beginning and ending quotation marks if either is present (Inherited from DString) | |
![]() |
Remove beginning and ending quotation marks only if both are present (Inherited from DString) | |
![]() |
Remove beginning and ending quotation marks only if both are present (Inherited from DString) | |
![]() |
Decode URL-encoded characters (Inherited from DString) | |
![]() |
Decode URL-encoded characters (Inherited from DString) | |
![]() |
Decode Ansi URL-encoded characters and convert to UTF-8 (Inherited from DString) | |
![]() |
URL-encode the contents of the string (Inherited from DString) | |
![]() |
Returns an unsigned character pointer to the internal buffer holding the string (Inherited from DString) | |
![]() |
Write contents of the string to a file, using a TCHAR filename (Inherited from DString) | |
![]() |
Write contents of the string to a file, using a UTF-8 filename, and throw a DFileException on error (Inherited from DString) | |
![]() |
Write contents of the string to a file, using a UTF-8 filename (Inherited from DString) |
|
Name |
Description |
![]() |
Returns false if this string equals the other string, using strcmp (Inherited from DString) | |
![]() |
Returns false if this string equals the other string, using strcmp (Inherited from DString) | |
![]() |
Append an integer to a string (Inherited from DString) | |
![]() |
Append a single character (Inherited from DString) | |
![]() |
Append a string (Inherited from DString) | |
![]() |
Append a string (Inherited from DString) | |
![]() |
Append a double to a string (Inherited from DString) | |
![]() |
Append an integer to a string (Inherited from DString) | |
![]() |
Append an integer to a string (Inherited from DString) | |
![]() |
Append an integer to a string (Inherited from DString) | |
![]() |
Append a single unsigned character (Inherited from DString) | |
![]() |
Append an integer to a string (Inherited from DString) | |
![]() |
Append an integer to a string (Inherited from DString) | |
![]() | ||
![]() |
Copy a filename | |
![]() |
Copy a filename | |
![]() |
Copy another string (Inherited from DString) | |
![]() |
Store a string as a filename | |
![]() |
Copy another string (Inherited from DString) | |
![]() |
Copy another string (Inherited from DString) | |
![]() |
Store a Unicode string as a filename | |
![]() | ||
![]() |
Returns true if this string equals the other string, using strcmp (Inherited from DString) | |
![]() |
Returns true if this string equals the other string, using strcmp (Inherited from DString) | |
![]() |
Returns a pointer to the internal buffer holding the string (Inherited from DString) |
![]() |
Operator |
![]() |
Constructor |
Filenames are stored as UTF-8 in a string buffer based on DString. DFilename adds no data members and just provides functions to manipulate paths in a string. The path manipulation functions handle Unix-style and Windows-style paths.