3 #ifndef INCLUDE_NN_NLIB_FILESTYLEURI_H_
4 #define INCLUDE_NN_NLIB_FILESTYLEURI_H_
18 NLIB_VIS_PUBLIC bool ComposeString(
char* buf,
size_t size) const NLIB_NOEXCEPT NLIB_NONNULL;
20 bool ComposeString(
char (&buf)[N]) const NLIB_NOEXCEPT {
21 return this->ComposeString(buf, N);
25 return m_Segments.GetNumSegment();
28 return m_Segments.GetSegment(i);
31 void Reset() NLIB_NOEXCEPT { m_Segments.Reset(); }
33 return m_Segments.IsDirectory();
37 detail::Segments m_Segments;
43 #endif // INCLUDE_NN_NLIB_FILESTYLEURI_H_
#define NLIB_NOEXCEPT
Defines noexcept geared to the environment, or the equivalent.
#define NLIB_FINAL
Defines final if it is available for use. If not, holds an empty string.
#define NLIB_DISALLOW_COPY_AND_ASSIGN(TypeName)
Prohibits use of the copy constructor and assignment operator for the class specified by TypeName...
The class for parsing URIs that use the file scheme and for constructing URI strings.
const char * GetSegment(size_t i) const noexcept
Specifies an index and gets a segment.
size_t GetNumSegment() const noexcept
Gets the number of stored segments.
bool IsPathDirectory() const noexcept
Gets whether the path is in the form of a directory path.
void Reset() noexcept
Initializes (resets) an object.
A file that contains the configuration information for each development environment.
The class for parsing and constructing regular URIs.
Defines the class for handling URIs.
FileStyleUri() noexcept
Instantiates the object with default parameters (default constructor). Initializes an object...