aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/lluistring.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-06 18:24:57 -0500
committerJacek Antonelli2008-09-06 18:25:07 -0500
commit798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch)
tree1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/llui/lluistring.cpp
parentSecond Life viewer sources 1.20.15 (diff)
downloadmeta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/llui/lluistring.cpp')
-rw-r--r--linden/indra/llui/lluistring.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/linden/indra/llui/lluistring.cpp b/linden/indra/llui/lluistring.cpp
index 2eb7f28..52b83bd 100644
--- a/linden/indra/llui/lluistring.cpp
+++ b/linden/indra/llui/lluistring.cpp
@@ -32,29 +32,29 @@
32#include "linden_common.h" 32#include "linden_common.h"
33#include "lluistring.h" 33#include "lluistring.h"
34 34
35const LLString::format_map_t LLUIString::sNullArgs; 35const LLStringUtil::format_map_t LLUIString::sNullArgs;
36 36
37 37
38LLUIString::LLUIString(const LLString& instring, const LLString::format_map_t& args) 38LLUIString::LLUIString(const std::string& instring, const LLStringUtil::format_map_t& args)
39 : mOrig(instring), 39 : mOrig(instring),
40 mArgs(args) 40 mArgs(args)
41{ 41{
42 format(); 42 format();
43} 43}
44 44
45void LLUIString::assign(const LLString& s) 45void LLUIString::assign(const std::string& s)
46{ 46{
47 mOrig = s; 47 mOrig = s;
48 format(); 48 format();
49} 49}
50 50
51void LLUIString::setArgList(const LLString::format_map_t& args) 51void LLUIString::setArgList(const LLStringUtil::format_map_t& args)
52{ 52{
53 mArgs = args; 53 mArgs = args;
54 format(); 54 format();
55} 55}
56 56
57void LLUIString::setArg(const LLString& key, const LLString& replacement) 57void LLUIString::setArg(const std::string& key, const std::string& replacement)
58{ 58{
59 mArgs[key] = replacement; 59 mArgs[key] = replacement;
60 format(); 60 format();
@@ -64,7 +64,7 @@ void LLUIString::truncate(S32 maxchars)
64{ 64{
65 if (mWResult.size() > (size_t)maxchars) 65 if (mWResult.size() > (size_t)maxchars)
66 { 66 {
67 LLWString::truncate(mWResult, maxchars); 67 LLWStringUtil::truncate(mWResult, maxchars);
68 mResult = wstring_to_utf8str(mWResult); 68 mResult = wstring_to_utf8str(mWResult);
69 } 69 }
70} 70}
@@ -98,6 +98,6 @@ void LLUIString::clear()
98void LLUIString::format() 98void LLUIString::format()
99{ 99{
100 mResult = mOrig; 100 mResult = mOrig;
101 LLString::format(mResult, mArgs); 101 LLStringUtil::format(mResult, mArgs);
102 mWResult = utf8str_to_wstring(mResult); 102 mWResult = utf8str_to_wstring(mResult);
103} 103}