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)
uInt len
Length of string.
friend ostream & operator<<(ostream &os, const MUString &in)
Output String starting at pointer.
String str
Data String value.
Bool testCharNC(Char ch) const
Int initLast()
Initialise last settings; return pointer.
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 skipSign()
Act on sign; return +1 or -1 depending on signs found (– == +)
Bool tSkipOneCharNC(Char ch)
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.
Pointed String class to aid analysis of quantity strings.
void setLast(Int st)
Set last settings.
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.
Regular expression class.
void skipInt()
Act on integer field.
A 1-D Specialization of the Array class.
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)