28 #ifndef CASA_MUSTRING_H 29 #define CASA_MUSTRING_H 33 #include <casacore/casa/aips.h> 34 #include <casacore/casa/BasicSL/String.h> 35 #include <casacore/casa/Containers/Block.h> 38 #include <casacore/casa/iosfwd.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.
Int initLast()
Initialise last settings; return pointer.
String lget
String found at last get.
Bool testCharNC(Char ch) const
void skipSign()
Act on sign; return +1 or -1 depending on signs found (– == +)
Bool eos() const
test for end of string
Bool tSkipString(const Regex &ex)
void push()
Save current pointer on internal stack.
uInt stpt
Pointer into stack.
Int getPtr() const
Get pointer.
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.
MUString & operator=(const MUString &other)
Copy assignment; new pointer will be same as old.
Bool tSkipOneCharNC(Char ch)
Bool testChar(Char ch) const
Bool testAlphaNum() const
String getStringNC(const String &ex)
Bool tSkipCharNC(Char ch)
Bool testString(const Regex &ex) const
Act on series of characters.
String operator()()
Obtain remaining string (same as get()).
String getString(const Regex &ex)
Bool testStringNC(const String &ex) const
Bool status() const
Get status last get.
Bool stat
Status of last get.
Regular expression class.
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.
void setLast(Int st)
Set last settings.
const String & lastGet() const
Get String found at last get.
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.
MUString()
Default constructor creates an empty string.
void skipDouble()
Act on Double field.
String: the storage and methods of handling collections of characters.
uInt ptr
0-based pointer into string
void skipString(const Regex &ex)
void skipStringNC(const String &ex)
String str
Data String value
this file contains all the compiler specific defines
Int freqChar(Char ch) const
Get frequency of occurrence.
friend ostream & operator<<(ostream &os, const MUString &in)
Output String starting at pointer.