#include <llstring.h>
Inheritance diagram for LLStringBase< T >:
Public Types | |
typedef std::basic_string< T >::size_type | size_type |
typedef std::map< std::string, std::string > | format_map_t |
Public Member Functions | |
LLStringBase () | |
LLStringBase (const LLStringBase &s) | |
LLStringBase (const std::basic_string< T > &s) | |
LLStringBase (const std::basic_string< T > &s, size_type pos, size_type n=std::basic_string< T >::npos) | |
LLStringBase (size_type count, const T &c) | |
LLStringBase (const T *s) | |
LLStringBase (const T *s, size_type n) | |
LLStringBase (const T *s, size_type pos, size_type n) | |
bool | operator== (const T *_Right) const |
Static Public Member Functions | |
static S32 | format (std::basic_string< T > &s, const format_map_t &fmt_map) |
static BOOL | isValidIndex (const std::basic_string< T > &string, size_type i) |
static void | trimHead (std::basic_string< T > &string) |
static void | trimTail (std::basic_string< T > &string) |
static void | trim (std::basic_string< T > &string) |
static void | truncate (std::basic_string< T > &string, size_type count) |
static void | toUpper (std::basic_string< T > &string) |
static void | toLower (std::basic_string< T > &string) |
static BOOL | isHead (const std::basic_string< T > &string, const T *s) |
static void | addCRLF (std::basic_string< T > &string) |
static void | removeCRLF (std::basic_string< T > &string) |
static void | replaceTabsWithSpaces (std::basic_string< T > &string, size_type spaces_per_tab) |
static void | replaceNonstandardASCII (std::basic_string< T > &string, T replacement) |
static void | replaceChar (std::basic_string< T > &string, T target, T replacement) |
static BOOL | containsNonprintable (const std::basic_string< T > &string) |
static void | stripNonprintable (std::basic_string< T > &string) |
static void | _makeASCII (std::basic_string< T > &string) |
Unsafe way to make ascii characters. You should probably only call this when interacting with the host operating system. The 1 byte LLString does not work correctly. The 2 and 4 byte LLString probably work, so LLWString::_makeASCII should work. | |
static BOOL | convertToBOOL (const std::basic_string< T > &string, BOOL &value) |
static BOOL | convertToU8 (const std::basic_string< T > &string, U8 &value) |
static BOOL | convertToS8 (const std::basic_string< T > &string, S8 &value) |
static BOOL | convertToS16 (const std::basic_string< T > &string, S16 &value) |
static BOOL | convertToU16 (const std::basic_string< T > &string, U16 &value) |
static BOOL | convertToU32 (const std::basic_string< T > &string, U32 &value) |
static BOOL | convertToS32 (const std::basic_string< T > &string, S32 &value) |
static BOOL | convertToF32 (const std::basic_string< T > &string, F32 &value) |
static BOOL | convertToF64 (const std::basic_string< T > &string, F64 &value) |
static S32 | compareStrings (const T *lhs, const T *rhs) |
static S32 | compareInsensitive (const T *lhs, const T *rhs) |
static S32 | compareDict (const std::basic_string< T > &a, const std::basic_string< T > &b) |
static BOOL | precedesDict (const std::basic_string< T > &a, const std::basic_string< T > &b) |
static void | copy (T *dst, const T *src, size_type dst_size) |
static void | copyInto (std::basic_string< T > &dst, const std::basic_string< T > &src, size_type offset) |
Static Public Attributes | |
static LLStringBase | null |
Definition at line 178 of file llstring.h.
typedef std::map<std::string, std::string> LLStringBase< T >::format_map_t |
Definition at line 237 of file llstring.h.
typedef std::basic_string<T>::size_type LLStringBase< T >::size_type |
Definition at line 181 of file llstring.h.
LLStringBase< T >::LLStringBase | ( | ) | [inline] |
Definition at line 189 of file llstring.h.
LLStringBase< T >::LLStringBase | ( | const LLStringBase< T > & | s | ) | [inline] |
Definition at line 190 of file llstring.h.
LLStringBase< T >::LLStringBase | ( | const std::basic_string< T > & | s | ) | [inline] |
Definition at line 191 of file llstring.h.
LLStringBase< T >::LLStringBase | ( | const std::basic_string< T > & | s, | |
size_type | pos, | |||
size_type | n = std::basic_string<T>::npos | |||
) | [inline] |
Definition at line 192 of file llstring.h.
LLStringBase< T >::LLStringBase | ( | size_type | count, | |
const T & | c | |||
) | [inline] |
Definition at line 194 of file llstring.h.
LLStringBase< T >::LLStringBase | ( | const T * | s | ) |
Definition at line 689 of file llstring.h.
LLStringBase< T >::LLStringBase | ( | const T * | s, | |
size_type | n | |||
) |
Definition at line 695 of file llstring.h.
LLStringBase< T >::LLStringBase | ( | const T * | s, | |
size_type | pos, | |||
size_type | n | |||
) |
Definition at line 702 of file llstring.h.
void LLStringBase< T >::_makeASCII | ( | std::basic_string< T > & | string | ) | [static] |
Unsafe way to make ascii characters. You should probably only call this when interacting with the host operating system. The 1 byte LLString does not work correctly. The 2 and 4 byte LLString probably work, so LLWString::_makeASCII should work.
Definition at line 1017 of file llstring.h.
References i, and LL_UNKNOWN_CHAR.
Referenced by utf8str_makeASCII().
void LLStringBase< T >::addCRLF | ( | std::basic_string< T > & | string | ) | [static] |
S32 LLStringBase< T >::compareDict | ( | const std::basic_string< T > & | a, | |
const std::basic_string< T > & | b | |||
) | [static] |
Definition at line 633 of file llstring.h.
References a, b, bias(), LLStringOps::isDigit(), LLStringOps::isUpper(), S32, and LLStringOps::toLower().
S32 LLStringBase< T >::compareInsensitive | ( | const T * | lhs, | |
const T * | rhs | |||
) | [static] |
Definition at line 599 of file llstring.h.
References LLStringOps::collate(), S32, and LLStringBase< T >::toUpper().
Referenced by utf8str_compare_insensitive().
S32 LLStringBase< T >::compareStrings | ( | const T * | lhs, | |
const T * | rhs | |||
) | [static] |
BOOL LLStringBase< T >::containsNonprintable | ( | const std::basic_string< T > & | string | ) | [static] |
BOOL LLStringBase< T >::convertToBOOL | ( | const std::basic_string< T > & | string, | |
BOOL & | value | |||
) | [static] |
BOOL LLStringBase< T >::convertToF32 | ( | const std::basic_string< T > & | string, | |
F32 & | value | |||
) | [static] |
Definition at line 1225 of file llstring.h.
References LLStringBase< T >::convertToF64(), F32_MAX, FALSE, and TRUE.
BOOL LLStringBase< T >::convertToF64 | ( | const std::basic_string< T > & | string, | |
F64 & | value | |||
) | [static] |
Definition at line 1238 of file llstring.h.
References FALSE, LLStringBase< T >::trim(), TRUE, and v.
Referenced by LLStringBase< T >::convertToF32().
BOOL LLStringBase< T >::convertToS16 | ( | const std::basic_string< T > & | string, | |
S16 & | value | |||
) | [static] |
Definition at line 1145 of file llstring.h.
References LLStringBase< T >::convertToS32(), FALSE, S16_MAX, S16_MIN, S32, and TRUE.
BOOL LLStringBase< T >::convertToS32 | ( | const std::basic_string< T > & | string, | |
S32 & | value | |||
) | [static] |
Definition at line 1198 of file llstring.h.
References FALSE, S32, LLStringBase< T >::trim(), TRUE, and v.
Referenced by LLStringBase< T >::convertToS16(), LLStringBase< T >::convertToS8(), LLStringBase< T >::convertToU16(), and LLStringBase< T >::convertToU8().
BOOL LLStringBase< T >::convertToS8 | ( | const std::basic_string< T > & | string, | |
S8 & | value | |||
) | [static] |
Definition at line 1132 of file llstring.h.
References LLStringBase< T >::convertToS32(), FALSE, S32, S8_MAX, S8_MIN, and TRUE.
BOOL LLStringBase< T >::convertToU16 | ( | const std::basic_string< T > & | string, | |
U16 & | value | |||
) | [static] |
Definition at line 1158 of file llstring.h.
References LLStringBase< T >::convertToS32(), FALSE, S32, TRUE, U16_MAX, and U16_MIN.
BOOL LLStringBase< T >::convertToU32 | ( | const std::basic_string< T > & | string, | |
U32 & | value | |||
) | [static] |
Definition at line 1171 of file llstring.h.
References FALSE, LLStringBase< T >::trim(), TRUE, and v.
BOOL LLStringBase< T >::convertToU8 | ( | const std::basic_string< T > & | string, | |
U8 & | value | |||
) | [static] |
Definition at line 1119 of file llstring.h.
References LLStringBase< T >::convertToS32(), FALSE, S32, TRUE, U8_MAX, and U8_MIN.
void LLStringBase< T >::copy | ( | T * | dst, | |
const T * | src, | |||
size_type | dst_size | |||
) | [static] |
void LLStringBase< T >::copyInto | ( | std::basic_string< T > & | dst, | |
const std::basic_string< T > & | src, | |||
size_type | offset | |||
) | [static] |
Definition at line 1047 of file llstring.h.
S32 LLStringBase< T >::format | ( | std::basic_string< T > & | s, | |
const format_map_t & | fmt_map | |||
) | [static] |
BOOL LLStringBase< T >::isHead | ( | const std::basic_string< T > & | string, | |
const T * | s | |||
) | [static] |
static BOOL LLStringBase< T >::isValidIndex | ( | const std::basic_string< T > & | string, | |
size_type | i | |||
) | [inline, static] |
Definition at line 240 of file llstring.h.
bool LLStringBase< T >::operator== | ( | const T * | _Right | ) | const [inline] |
Definition at line 229 of file llstring.h.
BOOL LLStringBase< T >::precedesDict | ( | const std::basic_string< T > & | a, | |
const std::basic_string< T > & | b | |||
) | [static] |
Definition at line 675 of file llstring.h.
void LLStringBase< T >::removeCRLF | ( | std::basic_string< T > & | string | ) | [static] |
void LLStringBase< T >::replaceChar | ( | std::basic_string< T > & | string, | |
T | target, | |||
T | replacement | |||
) | [static] |
Definition at line 912 of file llstring.h.
Referenced by LLPrefsIMImpl::apply(), LLLineEditor::paste(), LLPrefsIMImpl::setPersonalInfo(), and utf8str_substChar().
void LLStringBase< T >::replaceNonstandardASCII | ( | std::basic_string< T > & | string, | |
T | replacement | |||
) | [static] |
void LLStringBase< T >::replaceTabsWithSpaces | ( | std::basic_string< T > & | string, | |
size_type | spaces_per_tab | |||
) | [static] |
Definition at line 945 of file llstring.h.
Referenced by LLPrefsIMImpl::apply(), LLTextEditor::paste(), and LLLineEditor::paste().
void LLStringBase< T >::stripNonprintable | ( | std::basic_string< T > & | string | ) | [static] |
void LLStringBase< T >::toLower | ( | std::basic_string< T > & | string | ) | [static] |
Definition at line 802 of file llstring.h.
References LLStringOps::toLower().
Referenced by LLTextEditor::replaceText(), LLTextEditor::selectNext(), LLScrollListCtrl::selectSimpleItemByPrefix(), and utf8str_tolower().
void LLStringBase< T >::toUpper | ( | std::basic_string< T > & | string | ) | [static] |
Definition at line 788 of file llstring.h.
References LLStringOps::toUpper().
Referenced by LLStringBase< T >::compareInsensitive().
static void LLStringBase< T >::trim | ( | std::basic_string< T > & | string | ) | [inline, static] |
Definition at line 247 of file llstring.h.
Referenced by LLStringBase< T >::convertToBOOL(), LLStringBase< T >::convertToF64(), LLStringBase< T >::convertToS32(), LLStringBase< T >::convertToU32(), LLButton::draw(), LLLineEditor::postvalidateFloat(), LLLineEditor::prevalidateFloat(), LLLineEditor::prevalidateInt(), LLLineEditor::prevalidateNonNegativeS32(), LLLineEditor::prevalidatePositiveS32(), LLScrollListCtrl::selectSimpleItemByPrefix(), LLChatBar::sendChat(), LLFloaterIMPanel::sendMsg(), and utf8str_trim().
void LLStringBase< T >::trimHead | ( | std::basic_string< T > & | string | ) | [static] |
Definition at line 816 of file llstring.h.
References i, and LLStringOps::isSpace().
Referenced by LLChatBar::onInputEditorKeystroke(), and LLStringBase< char >::trim().
void LLStringBase< T >::trimTail | ( | std::basic_string< T > & | string | ) | [static] |
Definition at line 831 of file llstring.h.
References i, and LLStringOps::isSpace().
Referenced by LLStringBase< char >::trim().
void LLStringBase< T >::truncate | ( | std::basic_string< T > & | string, | |
size_type | count | |||
) | [static] |
Definition at line 1265 of file llstring.h.
Referenced by LLTextCmdAddChar::execute(), LLTextCmdInsert::execute(), LLUIString::truncate(), and LLTextEditor::truncate().
LLStringBase< T > LLStringBase< T >::null [static] |
Definition at line 235 of file llstring.h.