Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)

Enlighten API 3.10 Documentation
Results will update as you type.
  • class Geo CovarianceMatrixBuilder
  • class Geo EmbreeRtMeshVisitor
  • class Geo Geo2DTransform
  • class Geo GeoAlignedFreeDestructor
  • class Geo GeoAllocationPage
  • class Geo GeoAllocator
  • class Geo GeoAllocatorUnchecked
  • class Geo GeoArray
  • class Geo GeoArray_Stl
  • class Geo GeoAutoArrayPtr
  • class Geo GeoAutoDeleteArray
  • class Geo GeoAutoDeleteList
  • class Geo GeoAutoDeleteMap
  • class Geo GeoAutoPtr
  • class Geo GeoAutoReleaseArray
  • class Geo GeoAutoReleaseMap
  • class Geo GeoAutoReleasePtr
  • class Geo GeoBitArray
  • class Geo GeoBitStore
  • class Geo GeoBlueNoise
  • class Geo GeoBlueNoiseDiskPalette
  • class Geo GeoBlueNoiseRayPalette
  • class Geo GeoBoundingBox
  • class Geo GeoBoundingSphere
  • class Geo GeoBufferedFileStream
  • class Geo GeoBufferedInputStream
  • class Geo GeoCriticalSection
  • class Geo GeoDebugAllocator
  • class Geo GeoDelegateDestructor
  • class Geo GeoDeleteArrayDestructor
  • class Geo GeoDeleteDestructor
  • class Geo GeoDepthCubeMap
  • class Geo GeoEmbreeContext
  • class Geo GeoEqualCString
  • class Geo GeoEvent
  • class Geo GeoFileManager
  • class Geo GeoFileStream
  • class Geo GeoFixedBinarySearchMap
  • class Geo GeoFixedBinarySearchMapCompare
  • class Geo GeoFixedPoolAllocator
  • class Geo GeoFixedString
  • class Geo GeoFlattenAndPackResults
  • class Geo GeoFp16Texture
  • class Geo GeoFpControl
  • class Geo GeoFrameTime
  • class Geo GeoFreeDestructor
  • class Geo GeoGenericTexture
  • class Geo GeoGuid
  • class Geo GeoHalf
  • class Geo GeoHashConstHandle
  • class Geo GeoHashCString
  • class Geo GeoHashDefault
  • class Geo GeoHashHandle
  • class Geo GeoHashMap
  • class Geo GeoHashString
  • class Geo GeoImmutableArray
  • class Geo GeoInputEvent
  • class Geo GeoInstanceCount
  • class Geo GeoIntRange
  • class Geo GeoIntrusivePtr
  • class Geo GeoKeyValueArray
  • class Geo GeoLineSegment
  • class Geo GeoList
  • class Geo GeoMap
  • class Geo GeoMemoryDefault
  • class Geo GeoMemoryPool
  • class Geo GeoMemoryStream
  • class Geo GeoNonAABoundingBox
  • class Geo GeoNoopDestructor
  • class Geo GeoPair
  • class Geo GeoParametrisedPlane3
  • class Geo GeoPriorityQueue
  • class Geo GeoProgress
  • class Geo GeoQueue
  • class Geo GeoQueueEnumInterface
  • class Geo GeoRefArrayPtr
  • class Geo GeoRefCount
  • class Geo GeoRefPtr
  • class Geo GeoRefReleasePtr
  • class Geo GeoReleaseDestructor
  • class Geo GeoRGBXTexture
    Calendars

You‘re viewing this with anonymous access, so some content might be blocked.
/
class Geo GeoFixedString

    This is the documentation for Enlighten.

    class Geo GeoFixedString

    Nov 21, 2019

    template<typename T, s32>
    class Geo::GeoFixedString

    This is a simple string class template that always uses a fixed amount of memory for a single string.

    If you attempt to set a longer string to it it'll simply crop it. FOR BACKWARDS COMPATABILITY ONLY. Given the lack of utility provided, you are much


    better off with a proper resizing string, so use GeoString!

    Typedefs

    Name Description
    T CharType

    Make the template parameters visible properties, so users can create local objects to match.

    Variables

    Name Description
    const s32 MaxStringLength = MSL

    Make the template parameters visible properties, so users can create local objects to match.

    Functions

    Name Description
    ~GeoFixedString()

    Destructor.

    Clear()

    Clear the string.

    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.

    Empty()

    Returns true if the string is empty.

    FromUtf8(const char *)

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

    GeoFixedString()

    Default constructor.

    GeoFixedString(const T *)

    Explicit constructor from a raw C string.

    GeoFixedString(const T *, s32)

    Constructor with raw string and fixed termination point.

    GeoFixedString(const GeoFixedString &)

    Copy constructor.

    GetCString()

    Returns a const raw pointer to the string.

    GetLength()

    Returns the length of the string.

    GetMaxLength()

    Returns the maximum length string this object can store.

    operator<(const GeoFixedString &)

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

    ToUtf8()

    Returns a new narrow string from this one.


    Geo::GeoFixedString< T, MSL >::~GeoFixedString


    public: ~GeoFixedString()


    Destructor.


    void Geo::GeoFixedString< T, MSL >::Clear


    public: void Clear()


    Clear the string.


    bool Geo::GeoFixedString< T, MSL >::CropAfterLastChar


    public: bool CropAfterLastChar
    (
        T c
    )


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

    If there isn't one it won't do anything.

    Returns

    True if the string was cropped.


    bool Geo::GeoFixedString< T, MSL >::CropBeforeLastChar


    public: bool CropBeforeLastChar
    (
        T c
    )


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

    If there isn't one it won't do anything.

    Returns

    True if the string was cropped.


    bool Geo::GeoFixedString< T, MSL >::Empty


    public: bool Empty() const


    Returns true if the string is empty.


    static GeoFixedString Geo::GeoFixedString< T, MSL >::FromUtf8


    public: GeoFixedString FromUtf8
    (
        const char * utf8
    )


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


    Geo::GeoFixedString< T, MSL >::GeoFixedString


    public: GeoFixedString()


    Default constructor.


    Geo::GeoFixedString< T, MSL >::GeoFixedString


    public: GeoFixedString
    (
        const T * str
    )


    Explicit constructor from a raw C string.


    Geo::GeoFixedString< T, MSL >::GeoFixedString


    public: GeoFixedString
    (
        const T * str,
        s32 length
    )


    Constructor with raw string and fixed termination point.


    Geo::GeoFixedString< T, MSL >::GeoFixedString


    public: GeoFixedString
    (
        const GeoFixedString & rhs
    )


    Copy constructor.


    const T* Geo::GeoFixedString< T, MSL >::GetCString


    public: const T * GetCString() const


    Returns a const raw pointer to the string.


    s32 Geo::GeoFixedString< T, MSL >::GetLength


    public: s32 GetLength() const


    Returns the length of the string.


    s32 Geo::GeoFixedString< T, MSL >::GetMaxLength


    public: s32 GetMaxLength() const


    Returns the maximum length string this object can store.


    bool Geo::GeoFixedString< T, MSL >::operator<


    public: bool operator<
    (
        const GeoFixedString & rhs
    ) const


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


    GeoFixedString<char, MSL> Geo::GeoFixedString< T, MSL >::ToUtf8


    public: GeoFixedString< char, MSL > ToUtf8() const


    Returns a new narrow string from this one.

    , multiple selections available,
    {"serverDuration": 13, "requestCorrelationId": "59e8466924094695ac55087ea6af485c"}