diff options
author | Alexander Gavriliuk <alexandrgproductengine@lindenlab.com> | 2023-07-07 23:35:01 +0200 |
---|---|---|
committer | Guru <alexandrgproductengine@lindenlab.com> | 2023-07-10 13:11:58 +0200 |
commit | 16f0329d184f62437c296483143aef72f1aaa284 (patch) | |
tree | 909a5a160951e3452247d478b82e52c749a475e9 /indra/llcommon/llstring.h | |
parent | e7f2fbf2a49aa4bea22889db545f08ff6d0b4921 (diff) |
SL-19951 Collect used icons in a special group 'Recently used'
Diffstat (limited to 'indra/llcommon/llstring.h')
-rw-r--r-- | indra/llcommon/llstring.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/llcommon/llstring.h b/indra/llcommon/llstring.h index bdb90335e1..62403969e4 100644 --- a/indra/llcommon/llstring.h +++ b/indra/llcommon/llstring.h @@ -357,6 +357,7 @@ public: static void replaceNonstandardASCII( string_type& string, T replacement ); static void replaceChar( string_type& string, T target, T replacement ); static void replaceString( string_type& string, string_type target, string_type replacement ); + static string_type capitalize(const string_type& str); static void capitalize(string_type& str); static BOOL containsNonprintable(const string_type& string); @@ -1598,6 +1599,15 @@ void LLStringUtilBase<T>::replaceTabsWithSpaces( string_type& str, size_type spa //static template<class T> +std::basic_string<T> LLStringUtilBase<T>::capitalize(const string_type& str) +{ + string_type result(str); + capitalize(result); + return result; +} + +//static +template<class T> void LLStringUtilBase<T>::capitalize(string_type& str) { if (str.size()) |