mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -04:00
toupper_text -> make_upper
This commit is contained in:
parent
af4494d2de
commit
72238abee5
@ -441,7 +441,7 @@ upper(const string &source, TextEncoder::Encoding encoding) {
|
||||
TextEncoder encoder;
|
||||
encoder.set_encoding(encoding);
|
||||
encoder.set_text(source);
|
||||
encoder.toupper_text();
|
||||
encoder.make_upper();
|
||||
return encoder.get_text();
|
||||
}
|
||||
|
||||
@ -467,7 +467,7 @@ lower(const string &source, TextEncoder::Encoding encoding) {
|
||||
TextEncoder encoder;
|
||||
encoder.set_encoding(encoding);
|
||||
encoder.set_text(source);
|
||||
encoder.tolower_text();
|
||||
encoder.make_lower();
|
||||
return encoder.get_text();
|
||||
}
|
||||
|
||||
|
@ -24,14 +24,14 @@ TypeHandle TextEncoder::_type_handle;
|
||||
TextEncoder::Encoding TextEncoder::_default_encoding;
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: TextEncoder::toupper_text
|
||||
// Function: TextEncoder::make_upper
|
||||
// Access: Published
|
||||
// Description: Adjusts the text stored within the encoder to all
|
||||
// uppercase letters (preserving accent marks
|
||||
// correctly).
|
||||
////////////////////////////////////////////////////////////////////
|
||||
void TextEncoder::
|
||||
toupper_text() {
|
||||
make_upper() {
|
||||
get_wtext();
|
||||
wstring::iterator si;
|
||||
for (si = _wtext.begin(); si != _wtext.end(); ++si) {
|
||||
@ -41,14 +41,14 @@ toupper_text() {
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: TextEncoder::tolower_text
|
||||
// Function: TextEncoder::make_lower
|
||||
// Access: Published
|
||||
// Description: Adjusts the text stored within the encoder to all
|
||||
// lowercase letters (preserving accent marks
|
||||
// correctly).
|
||||
////////////////////////////////////////////////////////////////////
|
||||
void TextEncoder::
|
||||
tolower_text() {
|
||||
make_lower() {
|
||||
get_wtext();
|
||||
wstring::iterator si;
|
||||
for (si = _wtext.begin(); si != _wtext.end(); ++si) {
|
||||
|
@ -57,8 +57,8 @@ PUBLISHED:
|
||||
INLINE void clear_text();
|
||||
INLINE bool has_text() const;
|
||||
|
||||
void toupper_text();
|
||||
void tolower_text();
|
||||
void make_upper();
|
||||
void make_lower();
|
||||
|
||||
INLINE string get_text() const;
|
||||
INLINE string get_text(Encoding encoding) const;
|
||||
|
Loading…
x
Reference in New Issue
Block a user