Class StringAnsiView
Represents static text view as a sequence of ANSI characters. Characters sequence might not be null-terminated.
Inheritance
Inherited Members
Assembly: FlaxEngine.dll
File: Engine/Core/Types/StringView.h
Syntax
public class StringAnsiView : public StringViewBase
Constructors
StringAnsiView(const char* str)
Initializes a new instance of the StringAnsiView class.
Declaration
public StringAnsiView(const char* str)
Parameters
char
str
The characters sequence. |
StringAnsiView(const StringAnsi& str)
Initializes a new instance of the StringAnsiView class.
Declaration
public StringAnsiView(const StringAnsi& str)
Parameters
StringAnsi
str
The reference to the string. |
Fields
Empty
Instance of the empty string.
Declaration
public static StringAnsiView Empty
Field Value
StringAnsiView
|
Methods
EndsWith(const StringAnsiView& suffix, StringSearchCase searchCase=StringSearchCase::IgnoreCase)
Declaration
public bool EndsWith(const StringAnsiView& suffix, StringSearchCase searchCase=StringSearchCase::IgnoreCase) const
Parameters
StringAnsiView
suffix
|
StringSearchCase
searchCase
|
Returns
bool
|
operator!=(const char* other)
Lexicographically test whether this string is not equivalent to the other given string (case sensitive).
Declaration
public bool operator!=(const char* other) const
Parameters
char
other
The other text. |
Returns
bool
True if this string is lexicographically is not equivalent to the other, otherwise false. |
operator!=(const StringAnsi& other)
Lexicographically test whether this string is not equivalent to the other given string (case sensitive).
Declaration
public bool operator!=(const StringAnsi& other) const
Parameters
StringAnsi
other
The other text. |
Returns
bool
True if this string is lexicographically is not equivalent to the other, otherwise false. |
operator!=(const StringAnsiView& other)
Lexicographically test whether this string is not equivalent to the other given string (case sensitive).
Declaration
public bool operator!=(const StringAnsiView& other) const
Parameters
StringAnsiView
other
The other text. |
Returns
bool
True if this string is lexicographically is not equivalent to the other, otherwise false. |
operator=(const char* str)
Assigns the static string.
Declaration
public StringAnsiView operator=(const char* str)
Parameters
char
str
The other string. |
Returns
StringAnsiView
The reference to this object. |
operator==(const char* other)
Lexicographically test whether this string is equivalent to the other given string (case sensitive).
Declaration
public bool operator==(const char* other) const
Parameters
char
other
The other text. |
Returns
bool
True if this string is lexicographically equivalent to the other, otherwise false. |
operator==(const StringAnsi& other)
Lexicographically test whether this string is equivalent to the other given string (case sensitive).
Declaration
public bool operator==(const StringAnsi& other) const
Parameters
StringAnsi
other
The other text. |
Returns
bool
True if this string is lexicographically equivalent to the other, otherwise false. |
operator==(const StringAnsiView& other)
Lexicographically test whether this string is equivalent to the other given string (case sensitive).
Declaration
public bool operator==(const StringAnsiView& other) const
Parameters
StringAnsiView
other
The other text. |
Returns
bool
True if this string is lexicographically equivalent to the other, otherwise false. |
StartsWith(const StringAnsiView& prefix, StringSearchCase searchCase=StringSearchCase::IgnoreCase)
Declaration
public bool StartsWith(const StringAnsiView& prefix, StringSearchCase searchCase=StringSearchCase::IgnoreCase) const
Parameters
StringAnsiView
prefix
|
StringSearchCase
searchCase
|
Returns
bool
|
StringAnsiView()
Initializes a new instance of the StringView class.
Declaration
public constexpr StringAnsiView()
Returns
constexpr
|
StringAnsiView(const char* str, int32 length)
Initializes a new instance of the StringAnsiView class.
Declaration
public constexpr StringAnsiView(const char* str, int32 length)
Parameters
char
str
The characters sequence. |
int32
length
The characters sequence length (excluding null-terminator character). |
Returns
constexpr
|
StringAnsiView(const StringAnsiView& str)
Initializes a new instance of the StringAnsiView class.
Declaration
public constexpr StringAnsiView(const StringAnsiView& str)
Parameters
StringAnsiView
str
The reference to the static string. |
Returns
constexpr
|
Substring(int32 startIndex)
Retrieves substring created from characters starting from startIndex to the String end.
Declaration
public StringAnsi Substring(int32 startIndex) const
Parameters
int32
startIndex
The index of the first character to subtract. |
Returns
StringAnsi
The substring created from String data. |
Substring(int32 startIndex, int32 count)
Retrieves substring created from characters starting from start index.
Declaration
public StringAnsi Substring(int32 startIndex, int32 count) const
Parameters
int32
startIndex
The index of the first character to subtract. |
int32
count
The amount of characters to retrieve. |
Returns
StringAnsi
The substring created from String data. |