28 #ifndef CASA_MUSTRING_H
29 #define CASA_MUSTRING_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/casa/Arrays/ArrayFwd.h>
35 #include <casacore/casa/BasicSL/String.h>
36 #include <casacore/casa/Containers/Block.h>
39 #include <casacore/casa/iosfwd.h>
Bool testChar(const Regex &ex) const
Int initLast()
Initialise last settings; return pointer.
Int getPtr() const
Get pointer.
void setLast(Int st)
Set last settings.
String getStringNC(const String &ex)
MUString(const MUString &other)
Copy constructor; new pointer will be same as old.
String operator()()
Obtain remaining string (same as get()).
Bool status() const
Get status last get.
static uInt minimaxNC(const String &in, const Vector< String > &tname)
const String & lastGet() const
Get String found at last get.
void pop()
Restore pointer from stack (or set to start if stack empty)
void skipBlank()
Act on whitespace; adjusting pointer if skip.
String str
Data String value.
Bool tSkipString(const String &ex)
void skipStringNC(const String &ex)
void skipChar(Int n=1)
Act on character(s)
Bool testString(const String &ex) const
friend ostream & operator<<(ostream &os, const MUString &in)
Output String starting at pointer.
MUString()
Default constructor creates an empty string.
void skipDouble()
Act on Double field.
void adjustPtr(Int in)
Member functions Make a new pointer between 0 and len inclusive.
void skipString(const Regex &ex)
Block< uInt > stack
Pointer stack.
MUString & operator=(const MUString &other)
Copy assignment; new pointer will be same as old.
Bool testChar(Char ch) const
Bool tSkipString(const Regex &ex)
String getString(const String &ex)
void skipInt()
Act on integer field.
void unpush()
Restore stack for one level.
static uInt minimaxNC(const String &in, Int N_name, const String tname[])
Do minimax check on list of Strings.
Bool testCharNC(Char ch) const
Bool tSkipCharNC(Char ch)
Bool testStringNC(const String &ex) const
Bool matchPair(Char nd)
Match a pair of opening(at pointer)/closing characters (e.g.
String getString(const Regex &ex)
void setPtr(Int in=0)
(Re-)set pointer
Int freqChar(Char ch) const
Get frequency of occurrence.
void skipChar(const Regex &ex)
Bool testString(const Regex &ex) const
Act on series of characters.
uInt stpt
Pointer into stack.
Bool testAlphaNum() const
String get(uInt st, uInt nd)
uInt len
Length of string.
Bool stat
Status of last get.
Bool eos() const
test for end of string
Bool tSkipChar(const Regex &ex)
Bool tSkipOneCharNC(Char ch)
uInt ptr
0-based pointer into string
MUString(const String &in)
Create from String; setting pointer at start.
Bool tSkipStringNC(const String &ex)
Bool tSkipOneChar(Char ch)
String lget
String found at last get.
String get()
Get part of string.
void skipSign()
Act on sign; return +1 or -1 depending on signs found (– == +)
void push()
Save current pointer on internal stack.
void skipString(const String &ex)
String: the storage and methods of handling collections of characters.
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.
ostream & operator<<(ostream &os, const IComplex &)
Show on ostream.