class Geo GeoVariant UrlData

This is the documentation for Enlighten.

class Geo GeoVariant UrlData

class Geo::GeoVariant::UrlData

    └>Geo::GeoString< char >

String class for representing URLs (e.g. file paths).

Functions

Name

Description

Name

Description

~GeoString()

Destructor.

Clear()

Clear the string.

CopyTo(T *, s32)

Copies the content of this string to the given raw character buffer.

Crop(s32)

Terminates the string at the given position.

CropAfterLastChar(T)

This will remove the string beyond and including the last character specified if there is one.

CropBeforeLastChar(T)

This will remove the string up to and including the last character specified if there is one.

ForceLength(s32)

Directly sets the length of the string to the given value.

FromUtf8(const char *)

Creates a UrlData from a string.

FromUtf8(const char *)

Creates a new string of this format from a narrow string.

GeoString(GeoString &&)

Move constructor.

GeoString(s32)

Explicit constructor for an initial buffer length.

GeoString(const T *, s32)

Explicit constructor from an array of size n.

GeoString(const T *)

Explicit constructor from a null-terminated array.

GeoString()

Default constructor.

GeoString(const GeoString &)

Copy constructor.

GetCapacity()

Returns the string capacity.

GetCString()

Returns a const raw pointer to the string.

GetLength()

Returns the length of the string.

GetString()

Returns a non-const raw pointer to the string.

IsEmpty()

Returns true if the string is empty.

operator GeoStringView< T >()

Implicit conversion to string view.

operator[](s32)

Element access operator. Do not use this to assign a terminator, or the string will very likely be corrupted.

operator<(const GeoString &)

Comparison (required to use strings as keys in a map).

Printf(const T *, ...)

Creates a string from a standard C style format specifier, without the user having to know the maximum string length beforehand.

SetCapacity(s32)

Set the string capacity (increase only).

Substring(Geo::s32, Geo::s32)

Returns a subsection of the string.

Swap(GeoString &)

Swap places with other.

ToUtf8()

Returns a new narrow string from this one.

UrlData(const char *)

Creates a UrlData from a string.

Typedefs

Name

Description

Name

Description

T CharType

The character type of this string.