28 #ifndef CASA_MUSTRING_H
29 #define CASA_MUSTRING_H
42 template <
class T>
class Vector;
void skipBlank()
Act on whitespace; adjusting pointer if skip.
void skipInt()
Act on integer field.
A 1-D Specialization of the Array class.
Bool testStringNC(const String &ex) const
Int initLast()
Initialise last settings; return pointer.
std::vector< double > Vector
String lget
String found at last get.
void skipSign()
Act on sign; return +1 or -1 depending on signs found (– == +)
Bool tSkipString(const Regex &ex)
void push()
Save current pointer on internal stack.
uInt stpt
Pointer into stack.
Bool testAlphaNum() const
void skipChar(Int n=1)
Act on character(s)
Block< uInt > stack
Pointer stack.
Bool tSkipStringNC(const String &ex)
Pointed String class to aid analysis of quantity strings.
Bool tSkipOneChar(Char ch)
uInt len
Length of string.
void unpush()
Restore stack for one level.
Bool testCharNC(Char ch) const
MUString & operator=(const MUString &other)
Copy assignment; new pointer will be same as old.
ostream & operator<<(ostream &os, const std::pair< T, U > &p)
Bool tSkipOneCharNC(Char ch)
const String & lastGet() const
Get String found at last get.
String getStringNC(const String &ex)
Bool tSkipCharNC(Char ch)
String operator()()
Obtain remaining string (same as get()).
String getString(const Regex &ex)
Bool stat
Status of last get.
Regular expression class.
Bool eos() const
test for end of string
Int freqChar(Char ch) const
Get frequency of occurrence.
bool Bool
Define the standard types used by Casacore.
static uInt minimaxNC(const String &in, Int N_name, const String tname[])
Do minimax check on list of Strings.
void setPtr(Int in=0)
(Re-)set pointer
Bool matchPair(Char nd)
Match a pair of opening(at pointer)/closing characters (e.g.
Bool testString(const Regex &ex) const
Act on series of characters.
void setLast(Int st)
Set last settings.
void pop()
Restore pointer from stack (or set to start if stack empty)
void adjustPtr(Int in)
Member functions Make a new pointer between 0 and len inclusive.
Int getPtr() const
Get pointer.
MUString()
Default constructor creates an empty string.
void skipDouble()
Act on Double field.
Bool testChar(Char ch) const
String: the storage and methods of handling collections of characters.
uInt ptr
0-based pointer into string
void skipString(const Regex &ex)
Bool status() const
Get status last get.
void skipStringNC(const String &ex)
String str
Data String value
friend ostream & operator<<(ostream &os, const MUString &in)
Output String starting at pointer.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.