LLStringFn Namespace Reference


Functions

void replace_nonprintable (std::basic_string< char > &string, char replacement)
 Replace all non-printable characters with replacement in string.
void replace_nonprintable (std::basic_string< llwchar > &string, llwchar replacement)
 Replace all non-printable characters with replacement in a wide string.
void replace_nonprintable_and_pipe (std::basic_string< char > &str, char replacement)
 Replace all non-printable characters and pipe characters with replacement in a string.
void replace_nonprintable_and_pipe (std::basic_string< llwchar > &str, llwchar replacement)
 Replace all non-printable characters and pipe characters with replacement in a wide string.


Detailed Description

Many of the 'strip' and 'replace' methods of LLStringBase need specialization to work with the signed char type. Sadly, it is not possible (AFAIK) to specialize a single method of a template class. That stuff should go here.


Function Documentation

void LLStringFn::replace_nonprintable ( std::basic_string< char > &  string,
char  replacement 
)

Replace all non-printable characters with replacement in string.

Parameters:
[in,out] string the to modify. out value is the string with zero non-printable characters.
The replacement character. use LL_UNKNOWN_CHAR if unsure.

Definition at line 760 of file llstring.cpp.

Referenced by LLParcel::setMediaURL(), LLParcel::setMusicURL(), and LLParcel::setName().

void LLStringFn::replace_nonprintable ( std::basic_string< llwchar > &  string,
llwchar  replacement 
)

Replace all non-printable characters with replacement in a wide string.

Parameters:
[in,out] string the to modify. out value is the string with zero non-printable characters.
The replacement character. use LL_UNKNOWN_CHAR if unsure.

Definition at line 773 of file llstring.cpp.

void LLStringFn::replace_nonprintable_and_pipe ( std::basic_string< char > &  str,
char  replacement 
)

Replace all non-printable characters and pipe characters with replacement in a string.

Parameters:
[in,out] the string to modify. out value is the string with zero non-printable characters and zero pipe characters.
The replacement character. use LL_UNKNOWN_CHAR if unsure.

Definition at line 789 of file llstring.cpp.

void LLStringFn::replace_nonprintable_and_pipe ( std::basic_string< llwchar > &  str,
llwchar  replacement 
)

Replace all non-printable characters and pipe characters with replacement in a wide string.

Parameters:
[in,out] the string to modify. out value is the string with zero non-printable characters and zero pipe characters.
The replacement wide character. use LL_UNKNOWN_CHAR if unsure.

Definition at line 804 of file llstring.cpp.


Generated on Thu Jul 1 06:12:05 2010 for Second Life Viewer by  doxygen 1.4.7