Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
9898dff5
Commit
9898dff5
authored
14 years ago
by
Merov Linden
Browse files
Options
Downloads
Plain Diff
STORM-430 : merge with viewer-development
parents
8a4b7c85
8f35e76f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/llui/lluistring.h
+6
-4
6 additions, 4 deletions
indra/llui/lluistring.h
with
6 additions
and
4 deletions
indra/llui/lluistring.h
+
6
−
4
View file @
9898dff5
...
@@ -58,10 +58,12 @@ class LLUIString
...
@@ -58,10 +58,12 @@ class LLUIString
public:
public:
// These methods all perform appropriate argument substitution
// These methods all perform appropriate argument substitution
// and modify mOrig where appropriate
// and modify mOrig where appropriate
LLUIString
()
:
mArgs
(
NULL
),
mNeedsResult
(
false
),
mNeedsWResult
(
false
)
{}
LLUIString
()
:
mArgs
(
NULL
),
mNeedsResult
(
false
),
mNeedsWResult
(
false
)
{}
LLUIString
(
const
std
::
string
&
instring
,
const
LLStringUtil
::
format_map_t
&
args
);
LLUIString
(
const
std
::
string
&
instring
,
const
LLStringUtil
::
format_map_t
&
args
);
LLUIString
(
const
std
::
string
&
instring
)
:
mArgs
(
NULL
)
{
assign
(
instring
);
}
LLUIString
(
const
std
::
string
&
instring
)
:
mArgs
(
NULL
)
{
assign
(
instring
);
}
~
LLUIString
()
{
delete
mArgs
;
}
void
assign
(
const
std
::
string
&
instring
);
void
assign
(
const
std
::
string
&
instring
);
LLUIString
&
operator
=
(
const
std
::
string
&
s
)
{
assign
(
s
);
return
*
this
;
}
LLUIString
&
operator
=
(
const
std
::
string
&
s
)
{
assign
(
s
);
return
*
this
;
}
...
@@ -81,14 +83,14 @@ class LLUIString
...
@@ -81,14 +83,14 @@ class LLUIString
void
clear
();
void
clear
();
void
clearArgs
()
{
if
(
mArgs
)
mArgs
->
clear
();
}
void
clearArgs
()
{
if
(
mArgs
)
mArgs
->
clear
();
}
// These utility functions are included for text editing.
// These utility functions are included for text editing.
// They do not affect mOrig and do not perform argument substitution
// They do not affect mOrig and do not perform argument substitution
void
truncate
(
S32
maxchars
);
void
truncate
(
S32
maxchars
);
void
erase
(
S32
charidx
,
S32
len
);
void
erase
(
S32
charidx
,
S32
len
);
void
insert
(
S32
charidx
,
const
LLWString
&
wchars
);
void
insert
(
S32
charidx
,
const
LLWString
&
wchars
);
void
replace
(
S32
charidx
,
llwchar
wc
);
void
replace
(
S32
charidx
,
llwchar
wc
);
private
:
private
:
// something changed, requiring reformatting of strings
// something changed, requiring reformatting of strings
void
dirty
();
void
dirty
();
...
@@ -100,7 +102,7 @@ class LLUIString
...
@@ -100,7 +102,7 @@ class LLUIString
void
updateResult
()
const
;
void
updateResult
()
const
;
void
updateWResult
()
const
;
void
updateWResult
()
const
;
LLStringUtil
::
format_map_t
&
getArgs
();
LLStringUtil
::
format_map_t
&
getArgs
();
std
::
string
mOrig
;
std
::
string
mOrig
;
mutable
std
::
string
mResult
;
mutable
std
::
string
mResult
;
mutable
LLWString
mWResult
;
// for displaying
mutable
LLWString
mWResult
;
// for displaying
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment