diff options
author | Christian Goetze <cg@lindenlab.com> | 2007-10-10 00:01:43 +0000 |
---|---|---|
committer | Christian Goetze <cg@lindenlab.com> | 2007-10-10 00:01:43 +0000 |
commit | 5ec8bbbe2244ea70d8aa74b5c572351632699425 (patch) | |
tree | 12a4e92720c531105a21ef4f9f363b8572d72a3a /indra/llcommon | |
parent | b3b62c3b9ef32c4dbcae51cd3ef582734d5717bb (diff) |
svn merge -r71238:71367 svn+ssh://svn/svn/linden/branches/maint-ui-qa3
Diffstat (limited to 'indra/llcommon')
-rw-r--r-- | indra/llcommon/llstring.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/indra/llcommon/llstring.h b/indra/llcommon/llstring.h index 649fcd41a6..70f7d5483e 100644 --- a/indra/llcommon/llstring.h +++ b/indra/llcommon/llstring.h @@ -321,6 +321,18 @@ template<class T> LLStringBase<T> LLStringBase<T>::null; typedef LLStringBase<char> LLString; typedef LLStringBase<llwchar> LLWString; +//@ Use this where we want to disallow input in the form of "foo" +// This is used to catch places where english text is embedded in the code +// instead of in a translatable XUI file. +class LLStringExplicit : public LLString +{ +public: + explicit LLStringExplicit(const char* s) : LLString(s) {} + LLStringExplicit(const LLString& s) : LLString(s) {} + LLStringExplicit(const std::string& s) : LLString(s) {} + LLStringExplicit(const std::string& s, size_type pos, size_type n = std::string::npos) : LLString(s, pos, n) {} +}; + struct LLDictionaryLess { public: @@ -336,7 +348,7 @@ public: */ /** - * @breif chop off the trailing characters in a string. + * @brief chop off the trailing characters in a string. * * This function works on bytes rather than glyphs, so this will * incorrectly truncate non-single byte strings. |