|
DocWire SDK
DocWire SDK: Award-winning modern data processing in C++20. SourceForge Community Choice & Microsoft support. AI-driven processing. Supports nearly 100 data formats, including email boxes and OCR. Boost efficiency in text extraction, web data extraction, data mining, document analysis. Offline processing possible for security and confidentiality
|
A class representing a file extension. More...
#include <file_extension.h>
Public Member Functions | |
| file_extension (const std::string &ext) | |
| Constructs a file_extension object from a string. More... | |
| file_extension (const std::filesystem::path &p) | |
| Constructs a file_extension object from a path. More... | |
| file_extension (const char *ext) | |
| Constructs a file_extension object from a const literal. More... | |
| std::string | string () const |
| Returns the file extension as a string. More... | |
| bool | operator== (const file_extension &other) const |
| Compares two file extensions for equality, ignoring case. More... | |
| std::strong_ordering | operator<=> (const file_extension &other) const |
| Compares two file extensions for equality, ignoring case. More... | |
A class representing a file extension.
File extensions are case-insensitive.
Definition at line 27 of file file_extension.h.
|
inlineexplicit |
Constructs a file_extension object from a string.
The string is converted to lowercase.
| ext | The extension string. |
Definition at line 37 of file file_extension.h.
|
inlineexplicit |
Constructs a file_extension object from a path.
The extension is extracted from the path and converted to lowercase.
| p | The path. |
Definition at line 49 of file file_extension.h.
|
inlineexplicit |
Constructs a file_extension object from a const literal.
The literal is converted to lowercase.
| ext | The extension literal. |
Definition at line 61 of file file_extension.h.
|
inline |
Compares two file extensions for equality, ignoring case.
| other | The file extension to compare with. |
Definition at line 96 of file file_extension.h.
|
inline |
Compares two file extensions for equality, ignoring case.
| other | The file extension to compare with. |
Definition at line 84 of file file_extension.h.
|
inline |
Returns the file extension as a string.
Definition at line 72 of file file_extension.h.