diff options
author | Jacek Antonelli | 2008-09-06 18:24:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-06 18:25:07 -0500 |
commit | 798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch) | |
tree | 1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/llui/lluistring.cpp | |
parent | Second Life viewer sources 1.20.15 (diff) | |
download | meta-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.cpp | 14 |
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 | ||
35 | const LLString::format_map_t LLUIString::sNullArgs; | 35 | const LLStringUtil::format_map_t LLUIString::sNullArgs; |
36 | 36 | ||
37 | 37 | ||
38 | LLUIString::LLUIString(const LLString& instring, const LLString::format_map_t& args) | 38 | LLUIString::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 | ||
45 | void LLUIString::assign(const LLString& s) | 45 | void LLUIString::assign(const std::string& s) |
46 | { | 46 | { |
47 | mOrig = s; | 47 | mOrig = s; |
48 | format(); | 48 | format(); |
49 | } | 49 | } |
50 | 50 | ||
51 | void LLUIString::setArgList(const LLString::format_map_t& args) | 51 | void LLUIString::setArgList(const LLStringUtil::format_map_t& args) |
52 | { | 52 | { |
53 | mArgs = args; | 53 | mArgs = args; |
54 | format(); | 54 | format(); |
55 | } | 55 | } |
56 | 56 | ||
57 | void LLUIString::setArg(const LLString& key, const LLString& replacement) | 57 | void 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() | |||
98 | void LLUIString::format() | 98 | void 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 | } |