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