casa
5.7.0-16
|
String: the storage and methods of handling collections of characters. More...
#include <String.h>
Public Types | |
typedef string::traits_type | traits_type |
typedef string::value_type | value_type |
typedef string::allocator_type | allocator_type |
typedef string::size_type | size_type |
typedef string::difference_type | difference_type |
typedef string::reference | reference |
typedef string::const_reference | const_reference |
typedef string::pointer | pointer |
typedef string::const_pointer | const_pointer |
typedef string::iterator | iterator |
typedef string::const_iterator | const_iterator |
typedef string::reverse_iterator | reverse_iterator |
typedef string::const_reverse_iterator | const_reverse_iterator |
Public Member Functions | |
String () | |
Default constructor. More... | |
String (const string &str, size_type pos=0, size_type n=npos) | |
Construct from std string Construct from (part of) other string: acts as copy constructor. More... | |
String (const Char *s, size_type n) | |
Construct from char* with given length. More... | |
String (const Char *s) | |
Construct from char array. More... | |
String (size_type n, Char c) | |
Construct from a single char (repeated n times) More... | |
template<class InputIterator > | |
String (InputIterator begin, InputIterator end) | |
Construct from iterator. More... | |
String (Char c) | |
From single char (** Casacore addition). More... | |
String (const SubString &str) | |
Construct from a SubString. More... | |
String (ostringstream &os) | |
Construct from a stream. More... | |
~String () | |
Destructor. More... | |
String & | operator= (const string &str) |
Assignments (they are all deep copies according to standard) More... | |
String & | operator= (const SubString &str) |
String & | operator= (const Char *s) |
String & | operator= (Char c) |
SubString | operator() (size_type pos, size_type len) |
Casacore addition: synonym for at(pos, len) More... | |
String & | operator+= (const string &str) |
Concatenate. More... | |
String & | operator+= (const Char *s) |
String & | operator+= (Char c) |
const_reference | operator[] (size_type pos) const |
Indexing. More... | |
reference | operator[] (size_type pos) |
const_reference | elem (size_type pos) const |
*** Casacore addition More... | |
Char | firstchar () const |
Char | lastchar () const |
iterator | begin () |
Iterators. More... | |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
reverse_iterator | rbegin () |
const_reverse_iterator | rbegin () const |
reverse_iterator | rend () |
const_reverse_iterator | rend () const |
size_type | size () const |
Capacity, size. More... | |
size_type | length () const |
size_type | max_size () const |
size_type | capacity () const |
Int | allocation () const |
** Casacore addition – works as a capacity(n) – Note Int More... | |
String & | resize (size_type n) |
Resize by truncating or extending with copies of <tt>c</tt> (default | |
String & | resize (size_type n, Char c) |
String & | reserve (size_type res_arg=0) |
void | alloc (size_type n) |
** Casacore addition – works as a resize(n) More... | |
void | clear () |
Clear the string Warning: clear() executed as erase() due to missing clear() in gcc More... | |
Bool | empty () const |
Test for empty. More... | |
const_reference | at (size_type n) const |
Addressing. More... | |
reference | at (size_type n) |
String & | append (const string &str) |
Append. More... | |
String & | append (const string &str, size_type pos, size_type n) |
String & | append (const Char *s, size_type n) |
String & | append (const Char *s) |
String & | append (size_type n, Char c) |
template<class InputIterator > | |
String & | append (InputIterator first, InputIterator last) |
String & | append (Char c) |
** Casacore addition More... | |
String & | assign (const string &str) |
Assign. More... | |
String & | assign (const string &str, size_type pos, size_type n) |
String & | assign (const Char *s, size_type n) |
String & | assign (const Char *s) |
String & | assign (size_type n, Char c) |
template<class InputIterator > | |
String & | assign (InputIterator first, InputIterator last) |
String & | assign (Char c) |
** Casacore addition More... | |
String & | insert (size_type pos1, const string &str) |
Insert. More... | |
String & | insert (size_type pos1, const string &str, size_type pos2, size_type n) |
String & | insert (size_type pos, const Char *s, size_type n) |
String & | insert (size_type pos, const Char *s) |
String & | insert (size_type pos, size_type n, Char c) |
String & | insert (size_type pos, Char c) |
** Casacore addition More... | |
iterator | insert (iterator p, Char c) |
void | insert (iterator p, size_type n, Char c) |
template<class InputIterator > | |
void | insert (iterator p, InputIterator first, InputIterator last) |
String & | insert (iterator p, const string &str) |
** Casacore additions More... | |
String & | insert (iterator p, const Char *s, size_type n) |
String & | insert (iterator p, const Char *s) |
Int | compare (const string &str) const |
Compare. More... | |
Int | compare (size_type pos1, size_type n1, const string &str) const |
Int | compare (size_type pos1, size_type n1, const string &str, size_type pos2, size_type n2) const |
Int | compare (const Char *s) const |
Int | compare (size_type pos1, size_type n1, const Char *s, size_type n2=npos) const |
String & | erase (size_type pos, size_type n=npos) |
Erase. More... | |
iterator | erase (iterator position) |
iterator | erase (iterator first, iterator last) |
String & | replace (size_type pos1, size_type n1, const string &str) |
Replace. More... | |
String & | replace (size_type pos1, size_type n1, const string &str, size_type pos2, size_type n2) |
String & | replace (size_type pos, size_type n1, const Char *s, size_type n2) |
String & | replace (size_type pos, size_type n1, const Char *s) |
String & | replace (size_type pos, size_type n1, size_type n2, Char c) |
String & | replace (size_type pos, size_type n1, Char c) |
** Casacore addition More... | |
String & | replace (iterator i1, iterator i2, const string &str) |
String & | replace (iterator i1, iterator i2, const Char *s, size_type n) |
String & | replace (iterator i1, iterator i2, const Char *s) |
String & | replace (iterator i1, iterator i2, size_type n, Char c) |
String & | replace (iterator i1, iterator i2, Char c) |
** Casacore addition More... | |
template<class InputIterator > | |
String & | replace (iterator i1, iterator i2, InputIterator j1, InputIterator j2) |
size_type | copy (Char *s, size_type n, size_type pos=0) const |
Copy. More... | |
void | swap (string &s) |
Swap. More... | |
const Char * | c_str () const |
Get char array. More... | |
const Char * | data () const |
As pointer to char array. More... | |
const Char * | chars () const |
** Casacore synonym More... | |
allocator_type | get_allocator () const |
Get allocator used Warning: gcc has no get_allocator() More... | |
String | substr (size_type pos=0, size_type n=npos) const |
Get a sub string. More... | |
template<typename T > | |
Bool | fromString (T &value, Bool chk=True) const |
Convert a String to a value. More... | |
template<typename T > | |
T | fromString () const |
void | trim () |
Remove beginning and ending whitespace. More... | |
void | trim (char c[], uInt n) |
Remove specified chars from beginning and end of string. More... | |
void | ltrim (char c) |
Remove specified character from beginning of string. More... | |
void | rtrim (char c) |
Remove specified character from end of string. More... | |
Bool | startsWith (const string &beginString) const |
Does the string start with the specified string? More... | |
size_type | find (const string &str, size_type pos=0) const |
Search functions. More... | |
size_type | find (const Char *s, size_type pos=0) const |
size_type | find (const Char *s, size_type pos, size_type n) const |
size_type | find (Char c, size_type pos=0) const |
size_type | find (const RegexBase &r, size_type pos=0) const |
size_type | rfind (const string &str, size_type pos=npos) const |
size_type | rfind (const Char *s, size_type pos=npos) const |
size_type | rfind (const Char *s, size_type pos, size_type n) const |
size_type | rfind (Char c, size_type pos=npos) const |
size_type | rfind (const RegexBase &r, size_type pos=npos) const |
size_type | find_first_of (const string &str, size_type pos=0) const |
size_type | find_first_of (const Char *s, size_type pos=0) const |
size_type | find_first_of (const Char *s, size_type pos, size_type n) const |
size_type | find_first_of (Char c, size_type pos=0) const |
size_type | find_last_of (const string &str, size_type pos=npos) const |
size_type | find_last_of (const Char *s, size_type pos=npos) const |
size_type | find_last_of (const Char *s, size_type pos, size_type n) const |
size_type | find_last_of (Char c, size_type pos=npos) const |
size_type | find_first_not_of (const string &str, size_type pos=0) const |
size_type | find_first_not_of (const Char *s, size_type pos=0) const |
size_type | find_first_not_of (const Char *s, size_type pos, size_type n) const |
size_type | find_first_not_of (Char c, size_type pos=0) const |
size_type | find_last_not_of (const string &str, size_type pos=npos) const |
size_type | find_last_not_of (const Char *s, size_type pos=npos) const |
size_type | find_last_not_of (const Char *s, size_type pos, size_type n) const |
size_type | find_last_not_of (Char c, size_type pos=npos) const |
void | reverse () |
Maybe forget some. More... | |
void | capitalize () |
internal transformation to capitalization of String. More... | |
void | upcase () |
internal transformation to uppercase of String More... | |
void | downcase () |
internal transformation to lowercase of String More... | |
void | del (size_type pos, size_type len) |
Delete len chars starting at pos. More... | |
Bool | contains (Char c) const |
Containment. More... | |
Bool | contains (const string &str) const |
Bool | contains (const Char *s) const |
Bool | contains (const RegexBase &r) const |
Bool | contains (Char c, Int pos) const |
Does the string starting at the given position contain the given substring? If the position is negative, it is counted from the end. More... | |
Bool | contains (const string &str, Int pos) const |
Bool | contains (const Char *s, Int pos) const |
Bool | contains (const RegexBase &r, Int pos) const |
Bool | matches (const string &str, Int pos=0) const |
Matches entire string from pos (or till pos if negative pos). More... | |
Bool | matches (Char c, Int pos=0) const |
Bool | matches (const Char *s, Int pos=0) const |
Bool | matches (const RegexBase &r, Int pos=0) const |
void | prepend (const string &str) |
Concatenate by prepending the argument onto String. More... | |
void | prepend (const Char *s) |
void | prepend (Char c) |
size_type | index (Char c, Int startpos=0) const |
Return the position of the target in the string or npos for failure. More... | |
size_type | index (const string &str, Int startpos=0) const |
size_type | index (const Char *s, Int startpos=0) const |
size_type | index (const RegexBase &r, Int startpos=0) const |
Int | freq (Char c) const |
Return the number of occurences of target in String. More... | |
Int | freq (const string &str) const |
Int | freq (const Char *s) const |
SubString | at (size_type pos, size_type len) |
Extract the string "at" the argument's position. More... | |
String | at (size_type pos, size_type len) const |
SubString | at (const string &str, Int startpos=0) |
String | at (const string &str, Int startpos=0) const |
SubString | at (const Char *s, Int startpos=0) |
String | at (const Char *s, Int startpos=0) const |
SubString | at (Char c, Int startpos=0) |
String | at (Char c, Int startpos=0) const |
SubString | at (const RegexBase &r, Int startpos=0) |
String | at (const RegexBase &r, Int startpos=0) const |
SubString | at (Int pos, Int len) |
Next ones for overloading reasons. More... | |
String | at (Int pos, Int len) const |
SubString | at (Int pos, size_type len) |
String | at (Int pos, size_type len) const |
SubString | before (size_type pos) const |
Start at startpos and extract the string "before" the argument's position, exclusive. More... | |
SubString | before (const string &str, size_type startpos=0) const |
SubString | before (const Char *s, size_type startpos=0) const |
SubString | before (Char c, size_type startpos=0) const |
SubString | before (const RegexBase &r, size_type startpos=0) const |
SubString | before (Int pos) const |
Next one for overloading reasons. More... | |
SubString | through (size_type pos) |
Start at startpos and extract the SubString "through" to the argument's position, inclusive. More... | |
SubString | through (const string &str, size_type startpos=0) |
SubString | through (const Char *s, size_type startpos=0) |
SubString | through (Char c, size_type startpos=0) |
SubString | through (const RegexBase &r, size_type startpos=0) |
SubString | through (Int pos) |
Next one for overloading reasons. More... | |
SubString | from (size_type pos) |
Start at startpos and extract the SubString "from" the argument's position, inclusive, to the String's end. More... | |
SubString | from (const string &str, size_type startpos=0) |
SubString | from (const Char *s, size_type startpos=0) |
SubString | from (Char c, size_type startpos=0) |
SubString | from (const RegexBase &r, size_type startpos=0) |
SubString | from (Int pos) |
Next one for overloading reasons. More... | |
SubString | after (size_type pos) |
Start at startpos and extract the SubString "after" the argument's position, exclusive, to the String's end. More... | |
SubString | after (const string &str, size_type startpos=0) |
SubString | after (const Char *s, size_type startpos=0) |
SubString | after (Char c, size_type startpos=0) |
SubString | after (const RegexBase &r, size_type startpos=0) |
SubString | after (Int pos) |
Next one for overloading reasons. More... | |
void | del (const string &str, size_type startpos=0) |
Delete the first occurrence of target after startpos. More... | |
void | del (const Char *s, size_type startpos=0) |
void | del (Char c, size_type startpos=0) |
void | del (const RegexBase &r, size_type startpos=0) |
void | del (Int pos, Int len) |
Overload problem. More... | |
Int | gsub (const string &pat, const string &repl) |
Global substitution: substitute all occurrences of pat with repl, and return the number of replacements. More... | |
Int | gsub (const Char *pat, const string &repl) |
Int | gsub (const Char *pat, const Char *repl) |
Int | gsub (const RegexBase &pat, const string &repl) |
Static Public Member Functions | |
static String | format (const char *picture,...) |
Create a formatted string using the given printf format string. More... | |
static Int | toInt (const String &s, Bool chk=False) |
Convert a string to an Int, Float or Double. More... | |
static Float | toFloat (const String &s, Bool chk=False) |
static Double | toDouble (const String &s, Bool chk=False) |
template<typename T > | |
static String | toString (const T &value) |
Convert a value to a String. More... | |
Static Public Attributes | |
static const size_type | npos |
Private Member Functions | |
SubString | _substr (size_type first, size_type l) const |
Helper functions for at, before etc. More... | |
void | throwFromStringError () const |
Helper function for fromString. More... | |
String: the storage and methods of handling collections of characters.
Public interface
The String class name is a continuation of the "C" language custom of refering to collections of characters as "strings of characters".
The String class is the Casacore implementation of a string class. It is from the standard library string class, and all operations and behaviour of strings as defined in the standard are available for a String. The only difference is the extension with additional functions in the Casacore String class as compared to the standard string class.
The String class may be instantiated in many ways:
String myChar('C');
String myWord("Yowza");
String myFoo("fooey", 3);
As well as the copy and default constructors and iterator based ones.
A String may be concatinated with another object (String, or char*) with either prepending or postpending. A search for the position of a character within a String may return its position, a Bool that it is contained within or a Bool confirming your guess at the character's position is correct. A check of the frequency of occurance of a string within a String will return the number of occurances.
Strings may be extracted from Strings at, before, through, from and after a starting position within the String. Deletion of characters is possible after a given position within the String. Global substitution of characters within a String is provided, as well. Splitting of Strings into a carray of Strings is possible, based upon a given separator character, with a return value of the number of elements split. The joining together of the elements of an array of Strings into one String is possible.
Finally, transformations of case and conversions of type are provided.
The standard string class provides the following functionality:
The Casacore additions are:
at(1,2) = ";"
) The String class eases the handling of characters within the Casacore environment.
typedef string::allocator_type casacore::String::allocator_type |
typedef string::const_iterator casacore::String::const_iterator |
typedef string::const_pointer casacore::String::const_pointer |
typedef string::const_reference casacore::String::const_reference |
typedef string::const_reverse_iterator casacore::String::const_reverse_iterator |
typedef string::difference_type casacore::String::difference_type |
typedef string::iterator casacore::String::iterator |
typedef string::pointer casacore::String::pointer |
typedef string::reference casacore::String::reference |
typedef string::reverse_iterator casacore::String::reverse_iterator |
typedef string::size_type casacore::String::size_type |
typedef string::traits_type casacore::String::traits_type |
typedef string::value_type casacore::String::value_type |
|
inline |
Construct from std string Construct from (part of) other string: acts as copy constructor.
|
inline |
|
inline |
|
inlineexplicit |
|
inline |
casacore::String::String | ( | ostringstream & | os | ) |
Construct from a stream.
Start at startpos and extract the SubString "after" the argument's position, exclusive, to the String's end.
Referenced by casa::VPManager::antTypeFromAntDesc().
|
inline |
|
inline |
|
inline |
Append.
Warning: The standard has a void push_back(const Char)
which is completely undefined; It probably is a remnant of the full list of container functions pop/push back/front;
|
inline |
|
inline |
Assign.
Definition at line 419 of file String.h.
Referenced by casa::sdfiller::DataAccumulator::accumulate().
|
inline |
|
inline |
Addressing.
Definition at line 382 of file String.h.
Referenced by firstchar(), and lastchar().
Start at startpos and extract the string "before" the argument's
position, exclusive.
Referenced by casa::VPManager::telFromAntDesc().
|
inline |
|
inline |
Definition at line 331 of file String.h.
References casa::vi::begin().
|
inline |
Get char array.
As a proper null terminated C-string
Definition at line 555 of file String.h.
Referenced by casa::QtDBusXML::constructXML(), casa::vi::VbCacheItem< casacore::Int >::fill(), casa::QtDBusXML::fromString(), casa::QtDBusXML::fromXMLString(), casa::SynthesisImagerMixin< T >::getCFCacheList(), casa::utilj::getEnv(), casa::PlotMSTab::highlightifyText(), casacore::FunctionMarshallable::loadFuncType(), casa::QtDBusXML::methodParamArrayBool(), casa::QtDBusXML::methodParamArrayInt(), casa::QtDBusXML::methodParamBool(), casa::QtDBusXML::methodParamDouble(), casa::QtDBusXML::methodParamInt(), casa::QtDBusXML::methodParamRecord(), casa::QtDBusXML::methodParamString(), casa::QtDBusXML::methodParamType(), casa::QtDBusXML::methodParamUInt(), casacore::operator<<(), casa::PlotMSTab::setChooser(), casa::QtDBusXML::setFrom(), casa::QtDBusXML::setMethodName(), casa::QtDBusXML::setMethodParam(), casa::WorldCanvasHolder::setRestriction(), casa::QtDBusXML::setReturnedValue(), casa::QtDBusXML::setTo(), casa::DS9Region::valueIsValid(), and casacore::AipsError::what().
void casacore::String::capitalize | ( | ) |
internal transformation to capitalization of String.
|
inline |
** Casacore synonym
Definition at line 559 of file String.h.
Referenced by casacore::VariableArrayFITSFieldCopier< recordType, fitsType >::copyToFITS(), casa::GLPCDisplayListElement::name(), VLATapeIO::open(), and VLATapeIO::VLATapeIO().
|
inline |
|
inline |
Containment.
Definition at line 699 of file String.h.
Referenced by casa::VPManager::antTypeFromAntDesc(), and casa::VPManager::telFromAntDesc().
|
inline |
Copy.
Definition at line 546 of file String.h.
References casacore::copy().
|
inline |
Delete len chars starting at pos.
** Casacore addition
void casacore::String::del | ( | const string & | str, |
size_type | startpos = 0 |
||
) |
void casacore::String::downcase | ( | ) |
internal transformation to lowercase of String
Referenced by casa::vi::PolAverageVi2Factory::GetAverageModeFromConfig(), and casa::PlotKeyEvent::modifier().
|
inline |
|
inline |
Test for empty.
Definition at line 375 of file String.h.
References casa::vi::empty().
Referenced by casa::VPManager::antennaDescription(), casacore::TempLatticeImpl< T >::canReferenceArray(), casacore::ColumnSlicer::ColumnSlicer(), casa::PMS_PP_MSData::filenameIsSet(), casacore::TableKeyword::isFixed(), casacore::TempLatticeImpl< T >::isPaged(), casacore::TableMeasRefDesc::isRefCodeVariable(), casacore::TableQuantumDesc::isUnitVariable(), casacore::TaqlRegex::match(), casa::RSPolygon::type(), and casa::PlotLogger::usingGlobalSink().
|
inline |
|
inline |
Definition at line 333 of file String.h.
References casa::vi::end().
Search functions.
Returns either npos (if not found); else position.
Warning: The RegexBase ones are ** Casacore additions
Definition at line 644 of file String.h.
Referenced by casa::CubePartitionMixin< T >::get_params(), casa::ScantableFieldIterator::getEntry(), and startsWith().
|
inline |
|
static |
Create a formatted string using the given printf format string.
Referenced by casa::vi::VbCacheItem< casacore::Int >::fill(), and casacore::ColumnSlicer::validateParameters().
Return the number of occurences of target in String.
Int casacore::String::freq | ( | const string & | str | ) | const |
Convert a String to a value.
All characters in the string must be used. It uses a shift from an ostringstream, so that operator must exist for the data type used.
In case of an error, an exception is thrown if chk
is set. Otherwise it returns False and value
contains the value read so far.
Definition at line 583 of file String.h.
References casacore::False, throwFromStringError(), casacore::True, and casacore::value().
|
inline |
Definition at line 593 of file String.h.
References casacore::value().
|
inline |
Get allocator used
Warning: gcc has no get_allocator()
Int casacore::String::gsub | ( | const string & | pat, |
const string & | repl | ||
) |
Insert.
|
inline |
|
inline |
|
inline |
Definition at line 343 of file String.h.
References casacore::length().
Referenced by casacore::VariableArrayFITSFieldCopier< recordType, fitsType >::copyToFITS(), casa::WCAxisLabeller::displayedTitleText(), and lastchar().
void casacore::String::ltrim | ( | char | c | ) |
Remove specified character from beginning of string.
If the character is repeated more than once on the left, all instances will be removed; e.g. ltrim(',') results in ",,xy" becoming "xy".
Matches entire string from pos (or till pos if negative pos).
Referenced by casacore::TaqlRegex::match(), and matches().
Casacore addition: synonym for at(pos, len)
Definition at line 1019 of file String.h.
References casacore::SubString::String.
|
inline |
|
inline |
Assignments (they are all deep copies according to standard)
Definition at line 288 of file String.h.
References casacore::operator=().
Definition at line 292 of file String.h.
References casacore::operator=().
Definition at line 294 of file String.h.
References casacore::operator=().
|
inline |
void casacore::String::prepend | ( | const string & | str | ) |
Concatenate by prepending the argument onto String.
void casacore::String::prepend | ( | const Char * | s | ) |
void casacore::String::prepend | ( | Char | c | ) |
|
inline |
|
inline |
|
inline |
|
inline |
Replace.
Definition at line 511 of file String.h.
References casacore::replace().
|
inline |
Definition at line 513 of file String.h.
References casacore::replace().
|
inline |
Definition at line 516 of file String.h.
References casacore::replace().
Definition at line 518 of file String.h.
References casacore::replace().
Definition at line 520 of file String.h.
References casacore::replace().
Definition at line 525 of file String.h.
References casacore::replace().
Definition at line 527 of file String.h.
References casacore::replace().
Definition at line 529 of file String.h.
References casacore::replace().
Definition at line 531 of file String.h.
References casacore::replace().
|
inline |
Definition at line 537 of file String.h.
References casacore::replace().
Resize by truncating or extending with copies of <tt>c</tt> (default
Tip: The reserve length given is non-binding on the implementation
Definition at line 359 of file String.h.
Referenced by casa::sdfiller::DataChunk::setPolType(), and casa::PMS_PP_Display::xConnect().
void casacore::String::reverse | ( | ) |
void casacore::String::rtrim | ( | char | c | ) |
Remove specified character from end of string.
If the character is repeated more than once on the right, all instances will be removed; e.g. rtrim(',') results in "xy,," becoming "xy".
|
inline |
Capacity, size.
Definition at line 342 of file String.h.
References casa::vi::size().
Referenced by casa::sdfiller::DataAccumulator::accumulate(), casa::RSLine::arrowType(), casa::sdfiller::AntennaRecord::fill(), casa::sdfiller::ObservationRecord::fill(), casa::sdfiller::SpectralWindowRecord::fill(), casa::sdfiller::SourceRecord::fill(), casa::sdfiller::FieldRecord::fill(), and RSMarker::stringToMarker().
|
inline |
Get a sub string.
Definition at line 570 of file String.h.
References String().
Referenced by casa::ScantableFieldIterator::getEntry().
Start at startpos and extract the SubString "through" to the argument's position, inclusive.
|
private |
Helper function for fromString.
Referenced by fromString().
Convert a string to an Int, Float or Double.
In case of an error, an exception is thrown if chk
is set. Otherwise the value read so far is returned (0 if nothing read).
Referenced by casa::ScantableFieldIterator::getEntry().
|
inlinestatic |
Convert a value to a String.
It uses a shift into an ostringstream, so that operator must be defined for the data type used.
Definition at line 614 of file String.h.
References casacore::value().
Referenced by casa::DS9Region::defaultStringValue(), casacore::MArray< T >::flatten(), casa::ParamFieldIterator::operator*(), casa::MultiParamFieldIterator< N >::operator*(), casa::AWProjectFT::setMiscInfo(), casa::refim::AWProjectFT::setMiscInfo(), and casa::vi::VbCacheItemArray< casacore::casacore::Vector< casacore::uInt > >::shapeErrorMessage().
void casacore::String::trim | ( | ) |
Remove beginning and ending whitespace.
void casacore::String::trim | ( | char | c[], |
uInt | n | ||
) |
Remove specified chars from beginning and end of string.
void casacore::String::upcase | ( | ) |
internal transformation to uppercase of String
Referenced by casa::ImageRotator< T >::setInterpolationMethod().
|
static |
Definition at line 244 of file String.h.
Referenced by casa::ScantableFieldIterator::getEntry().