WXP C++ Library Version 6.74.6
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
WXP::StrLib Class Reference

This class manipulates basic strings (char *) More...

#include "../include/StrLib.h"

Static Public Member Functions

static int clear (char *string)
 
static int length (const char *string)
 
static int replace (char *string, char tar, char fill)
 
static int trimWS (char *string)
 
static int stripWS (char *string)
 
static int chop (char *string)
 
static int lowCase (char *string)
 
static int upCase (char *string)
 
static int upCaseFirst (char *string)
 
static int toInt (const char *str, int ind, int len)
 
static int toInt (const char *str, int ind)
 
static int toInt (const char *str)
 
static float toFloat (const char *str, int ind, int len)
 
static float toFloat (const char *str, int ind)
 
static float toFloat (const char *str)
 
static int subString (const char *s1, int ind, int len, char *s2, int len2)
 
static int splice (char *s1, int len1, int i1, int n, const char *s2)
 
static const char * getField (const char *str, char delim, int field)
 
static int index (const char *s1, char s2)
 
static int index (const char *s1, char s2, int num)
 
static int lastIndex (const char *s1, char s2)
 
static int occurs (const char *s1, char s2)
 
static bool equal (const char *s1, const char *s2)
 
static int icmp (const char *s1, const char *s2)
 
static bool iequal (const char *s1, const char *s2)
 
static bool contains (const char *s1, const char *s2)
 
static bool hasToken (const char *s1, char delim, const char *s2)
 
static int where (const char *s1, const char *s2)
 
static int icmp (const char *s1, const char *s2, int num)
 
static bool iequal (const char *s1, const char *s2, int num)
 
static bool equal (const char *s1, const char *s2, int num)
 
static bool equal (const char *s1, int num, const char *s2)
 
static int copy (char *s1, int len1, const char s2)
 
static int copy (char *s1, int len1, const char *s2)
 
static int copy (char *s1, int len1, const char *s2, int num)
 
static int bcopy (unsigned char *s1, int len1, const unsigned char *s2, int num)
 
static int append (char *s1, int len1, const char *s2, int num)
 
static int append (char *s1, int len1, const char *s2)
 
static char * acopy (const char *str)
 
static char * acopy (const char *str, int num)
 
static int printf (char *str, int maxlen, const char *fmt,...)
 
static int aprintf (char *str, int maxlen, const char *fmt,...)
 
static char setChar (char *str, int ind, char ch)
 
static char getChar (const char *str, int ind)
 
static bool isNum (const char *string)
 
static bool isNum (const char *string, int len)
 
static int getInt (const char *string)
 
static float getFloat (const char *string)
 
static int clean (char *line)
 
static bool valid (const char *str)
 
static const char * valid (const char *str, const char *def)
 
static bool validData (const char *str)
 
static bool isAlphaNum (const char *str)
 
static bool check (const char *str, const char *pat)
 
static bool match (const char *str, const char *pat)
 

Detailed Description

This class manipulates basic strings (char *)

Author
Dan Vietor

Member Function Documentation

◆ acopy() [1/2]

char * StrLib::acopy ( const char *  s2)
static

Copies a string to a pointer, allocating memory for new string

Parameters
s2String to append
Returns
Pointer to allocated memory with copied string

Referenced by WXP::Resrc::add(), WXP::Strings::add(), WXP::Resrc::append(), WXP::Hash::enter(), WXP::Resrc::prepend(), WXP::Strings::set(), WXP::Data::setId(), and WXP::PngFile::write().

◆ acopy() [2/2]

char * StrLib::acopy ( const char *  s2,
int  num 
)
static

Copies a string to a pointer, allocating memory for new string, only copying num chars

Parameters
s2String to append
numNumber of characeters to copy
Returns
Pointer to allocated memory with copied string

◆ append() [1/2]

int StrLib::append ( char *  s1,
int  len1,
const char *  s2 
)
static

Appends a string to another string

Parameters
s1Output string
len1Length of output string
s2String to append

◆ append() [2/2]

int StrLib::append ( char *  s1,
int  len1,
const char *  s2,
int  num 
)
static

◆ aprintf()

int StrLib::aprintf ( char *  str,
int  maxlen,
const char *  fmt,
  ... 
)
static

Appends formatted data into a string (similar to sprintf)

Parameters
strString to append formatted data
lenLength of string
fmtFormat to use

Referenced by WXP::GribFile::makeDatim().

◆ bcopy()

int StrLib::bcopy ( unsigned char *  s1,
int  len1,
const unsigned char *  s2,
int  num 
)
static

Copies binary data to a string (null characters accepted)

Parameters
s1Output string
len1Length of output string
s2Data to copy
numNumber of characters to copy

Referenced by WXP::WmoIngest::process().

◆ check()

bool StrLib::check ( const char *  str,
const char *  pat 
)
static

Checks a string against a specific type of data. The pattern is a character by character pattern: A - alphanumeric a - alphabetic d - number b - blank c - control character l - lower case u - upper case p - punctuation g - graphic (printable except for space) else a specific character match

Parameters
strString to check
patPattern to use

References index().

Referenced by WXP::SfcWmoFile::checkHeader(), WXP::SfcWmoFile::checkStart(), WXP::CityHash::get(), WXP::Parse::getLine(), and WXP::WmoParse::getLine().

◆ clear()

int StrLib::clear ( char *  string)
static

◆ contains()

bool StrLib::contains ( const char *  s1,
const char *  s2 
)
static

◆ copy() [1/3]

int StrLib::copy ( char *  s1,
int  len1,
const char *  s2 
)
static

Copies a string

Parameters
s1Output string
len1Length of output string
s2String to copy

◆ copy() [2/3]

int StrLib::copy ( char *  s1,
int  len1,
const char *  s2,
int  num 
)
static

Copies a string, only num chars

Parameters
s1Output string
len1Length of output string
s2String to copy
numNumber of characters to copy

◆ copy() [3/3]

int StrLib::copy ( char *  s1,
int  len1,
const char  s2 
)
static

Copies a character to a string

Parameters
s1Output string
len1Length of output string
s2Character to copy

Referenced by WXP::Plot::addLabel(), WXP::Plot::callback(), WXP::Date::changeTimezone(), WXP::SfcWmoFile::checkHeader(), WXP::CityTool::compareData(), WXP::MosDataTool::compute(), WXP::SfcDataTool::compute(), WXP::UpaDataTool::compute(), WXP::Unit::convert(), WXP::NameConv::decode(), WXP::Vtec::decode(), WXP::FrontPlot::draw(), WXP::MapPlot::draw(), WXP::MosPlot::draw(), WXP::RawPlot::draw(), WXP::RedbookPlot::draw(), WXP::SfcPlot::draw(), WXP::UpaPlot::draw(), WXP::Graph::drawText(), WXP::VarName::get(), WXP::ResrcFile::get(), WXP::LritFile::getHeader(), WXP::Parse::getLine(), WXP::WmoParse::getLine(), WXP::MetarFile::getLine(), WXP::ResrcFile::getValid(), WXP::MeteoPlot::init(), WXP::RadMask::init(), WXP::GribFile::makeDatim(), WXP::FileTool::makeDir(), WXP::SfcCdfFile::open(), WXP::SfcData::outString(), WXP::Unit::parse(), WXP::RedbookFile::plotParam(), WXP::WmoIngest::process(), WXP::SfcXmlFile::read(), WXP::SfcWmoFile::read(), WXP::UpaWmoFile::read(), WXP::VarFile::read(), WXP::WarnFile::read(), WXP::BufrFile::readData(), WXP::Unit::readFile(), WXP::GribFile::readHeader(), WXP::WmoIngest::readProdFile(), WXP::Variable::set(), WXP::ModelSpec::set(), WXP::Filename::set(), WXP::Menu::set(), WXP::NameConv::set(), WXP::Date::set(), WXP::StatPrior::set(), WXP::BufrCode::set(), WXP::ResrcFile::set(), WXP::Variable::setAbbr(), WXP::VarNameItem::setAbbr(), WXP::XWindow::setBackground(), WXP::PngFile::setComment(), WXP::Grid::setDatim(), WXP::NameConv::setExt(), WXP::GridPlot::setFile(), WXP::MeteoPlot::setFile(), WXP::MosPlot::setFile(), WXP::NameConvFile::setFilename(), WXP::XWindow::setFont(), WXP::Graph::setFont(), WXP::Graph::setFontSpec(), WXP::DatumPlot::setFormat(), WXP::Grid::setGenName(), WXP::NameConvFile::setHdrFilename(), WXP::Parse::setHeader(), WXP::WmoParse::setHeader(), WXP::Parse::setId(), WXP::WmoParse::setId(), WXP::MosData::setId(), WXP::MosUData::setId(), WXP::Lev2Plot::setId(), WXP::NidsPlot::setId(), WXP::MeteoPlot::setIdent(), WXP::Grid::setInfo(), WXP::NameConv::setKey(), WXP::MapFileHeader::setLabel(), WXP::Plot::setLabel(), WXP::Plot::setLabelFormat(), WXP::RadMask::setModel(), WXP::GridCont::setModel(), WXP::GridPlot::setModel(), WXP::GridVect::setModel(), WXP::MeteoPlot::setModel(), WXP::MosPlot::setModel(), WXP::MosRaw::setModel(), WXP::Variable::setName(), WXP::VarNameItem::setName(), WXP::Filename::setNameConv(), WXP::MosData::setObvis(), WXP::GridPlot::setParam(), WXP::ImagePlot::setParam(), WXP::MosPlot::setParam(), WXP::NameConvFile::setParam(), WXP::NidsPlot::setParam(), WXP::RedbookPlot::setParam(), WXP::SatPlot::setParam(), WXP::StatPrior::setParam(), WXP::XWindow::setParam(), WXP::SfcPlot::setPlotType(), WXP::UpaPlot::setPlotType(), WXP::RadPlot::setSubType(), WXP::Graph::setSymbol(), WXP::ResrcFile::setTag(), WXP::ContPlot::setTextFormat(), WXP::PngFile::setTitle(), WXP::XWindow::setTitle(), WXP::Filename::setType(), WXP::NameConvFile::setType(), WXP::NidsPlot::setType(), WXP::ImagePlot::setType(), WXP::Variable::setUnits(), WXP::RcmDecode::setup(), WXP::RedbookFile::text(), WXP::License::valid(), WXP::Unit::valid(), WXP::ResrcFile::valid(), WXP::GifFile::write(), WXP::LZWComp::write(), and WXP::PngFile::write().

◆ equal() [1/3]

bool StrLib::equal ( const char *  s1,
const char *  s2 
)
static

Returns whether two strings are equal

Parameters
s1First string
s2Second string
Returns
true if equal

Referenced by WXP::Resrc::add(), WXP::ColorMap::add(), WXP::XWindow::addCallback(), WXP::DataMath::average(), WXP::AreaFile::calcDomain(), WXP::Figure::callback(), WXP::Graph::callback(), WXP::GridCont::callback(), WXP::GridVect::callback(), WXP::ImagePlot::callback(), WXP::NidsPlot::callback(), WXP::Plot::callback(), WXP::SatPlot::callback(), WXP::XWindow::callback(), WXP::Filename::checkFile(), WXP::SfcWmoFile::checkStart(), WXP::MetarFile::checkType(), WXP::BufrFile::checkType(), WXP::GribFile::checkType(), WXP::GridFile::checkType(), WXP::ImageFile::checkType(), WXP::SatFile::checkType(), WXP::Parse::compare(), WXP::WmoParse::compare(), WXP::ResrcCL::compare(), WXP::MosDataTool::compute(), WXP::MosRaw::compute(), WXP::SfcRaw::compute(), WXP::UpaRaw::compute(), WXP::SfcDataTool::compute(), WXP::UpaDataTool::compute(), WXP::DataMath::cutoff(), WXP::GridMath::cutoff(), WXP::NameConv::decode(), WXP::Variable::decode(), WXP::MetarTool::decode(), WXP::MosFile::decodeGFS(), WXP::MosFile::decodeGFSX(), WXP::MosFile::decodeLAMP(), WXP::MosFile::decodeNAM(), WXP::MosFile::decodeNGM(), WXP::ContPlot::decodeType(), WXP::ImagePlot::draw(), WXP::LightPlot::draw(), WXP::MdrPlot::draw(), WXP::RawPlot::draw(), WXP::RcmPlot::draw(), WXP::RedbookPlot::draw(), WXP::SfcPlot::draw(), WXP::VectPlot::drawVect(), WXP::Hash::enter(), WXP::Unit::equal(), WXP::Strings::equal(), WXP::Strings::find(), WXP::VarName::get(), WXP::DateTool::getCurrent(), WXP::ImagePlot::getDomain(), WXP::Data::getIndex(), WXP::ResrcCL::getKeyed(), WXP::Parse::getLine(), WXP::WmoParse::getLine(), WXP::MetarFile::getLine(), WXP::FileTool::getPath(), WXP::MdrPlot::getType(), WXP::RadPlot::getType(), WXP::RcmPlot::getType(), WXP::ImageFile::getType(), WXP::LightFile::getType(), WXP::UpaDecode::init(), WXP::WmoIngest::isSelected(), WXP::GridMath::locatePoint(), WXP::Plot::manage(), WXP::FileTool::numPath(), WXP::XWindow::open(), WXP::SfcXmlFile::open(), WXP::ImgWxpFile::open(), WXP::KmlFile::open(), WXP::Resrc::prepend(), WXP::WmoIngest::printLog(), WXP::WmoIngest::process(), WXP::CityFile::read(), WXP::GifFile::read(), WXP::LZWComp::read(), WXP::PngFile::read(), WXP::KmlFile::read(), WXP::SfcXmlFile::read(), WXP::SfcWmoFile::read(), WXP::UpaWmoFile::read(), WXP::WarnFile::read(), WXP::WatchFile::read(), WXP::WarnPlot::readFile(), WXP::AreaFile::readHeader(), WXP::BufrFile::readHeader(), WXP::GribFile::readHeader(), WXP::NowradFile::readHeader(), WXP::SatUniFile::readHeader(), WXP::ImgWxpFile::readHeader(), WXP::LritFile::readHeader(), WXP::WmoIngest::readProdFile(), WXP::DataMath::removeValid(), WXP::Hash::search(), WXP::Hash::searchBool(), WXP::VarName::searchFile(), WXP::Hash::searchFloat(), WXP::GribFile::searchGRIB(), WXP::Hash::searchInt(), WXP::ModelSpec::set(), WXP::Date::set(), WXP::Prog::setCommand(), WXP::Graph::setDevice(), WXP::Filename::setFile(), WXP::Graph::setFont(), WXP::MdrPlot::setInput(), WXP::RadPlot::setInput(), WXP::RcmPlot::setInput(), WXP::FrontPlot::setInput(), WXP::Lev2Plot::setInput(), WXP::MeteoPlot::setInput(), WXP::NameConv::setPath(), WXP::Graph::setSymbol(), WXP::ContPlot::setType(), WXP::DatumPlot::setType(), WXP::VectPlot::setType(), WXP::Date::toText(), WXP::License::valid(), WXP::Wxp::validLicense(), WXP::MosData::weather12(), WXP::MosData::weather6(), WXP::GifFile::write(), and WXP::LZWComp::write().

◆ equal() [2/3]

bool StrLib::equal ( const char *  s1,
const char *  s2,
int  num 
)
static

Returns whether two strings are equal, checking only num chars

Parameters
s1First string
s2Second string
numNumber of characters to compare
Returns
true if equal

◆ equal() [3/3]

bool StrLib::equal ( const char *  s1,
int  num,
const char *  s2 
)
static

Returns whether two strings are equal, checking only num chars

Parameters
s1First string
numNumber of characters to compare from first string
s2Second string
Returns
true if equal

◆ getChar()

char StrLib::getChar ( const char *  str,
int  ind 
)
static

Returns a character from a string

Parameters
strString to use
indIndex in that string to extract character
Returns
The output character

Referenced by WXP::DatumPlot::draw(), WXP::UpaWmoFile::read(), WXP::VarFile::read(), and WXP::Message::set().

◆ getField()

const char * StrLib::getField ( const char *  str,
char  delim,
int  field 
)
static

Returns the field using a specific delimeter. This searches through the string for the field number. It returns a pointer in the original string to the location just after the delimeter.

Parameters
strString to search
delimDelimeter to use
fieldThe field number
Returns
A pointer just after the delimeter

Referenced by WXP::VarFile::read().

◆ getFloat()

float StrLib::getFloat ( const char *  str)
static

Returns a float extracted from a string

Parameters
strString

References WXP::Const::MISS.

◆ getInt()

int StrLib::getInt ( const char *  str)
static

Returns an integer extracted from a string

Parameters
indIndex of string
offOffset into string to start extracting

References WXP::Const::MISS.

◆ icmp()

int StrLib::icmp ( const char *  s1,
const char *  s2 
)
static

Compares two strings, case insensitive

Parameters
s1First string
s2Second string
Returns
1 if 1 > 2, -1 if 1 < 2, 0 if equal

◆ iequal() [1/2]

bool StrLib::iequal ( const char *  s1,
const char *  s2 
)
static

◆ iequal() [2/2]

bool StrLib::iequal ( const char *  s1,
const char *  s2,
int  num 
)
static

Returns whether two strings are equal, checking only num chars

Parameters
s1First string
s2Second string
numNumber of characters to compare
Returns
true if equal

◆ index() [1/2]

int StrLib::index ( const char *  str,
char  ch 
)
static

◆ index() [2/2]

int StrLib::index ( const char *  str,
char  ch,
int  num 
)
static

Returns the index of num'th occurrence of a character within string

Parameters
strString to search
chCharacter to search for
numThe number of times a character appears before valid
Returns
Index within string or -1

◆ isAlphaNum()

bool StrLib::isAlphaNum ( const char *  str)
static

Checks a string to see if it contains alpha-numeric data

Parameters
stringString to check

Referenced by WXP::Parse::getLine(), and WXP::WmoParse::getLine().

◆ isNum() [1/2]

bool StrLib::isNum ( const char *  str)
static

Returns whether the string contains all numeric data

Parameters
strString to check

References valid().

Referenced by WXP::SfcWmoFile::checkStart(), and WXP::UpaWmoFile::read().

◆ isNum() [2/2]

bool StrLib::isNum ( const char *  str,
int  num 
)
static

Returns whether the string contains all numeric data, checking num chars

Parameters
strString to check
numNumber of characters to check

References valid().

◆ lastIndex()

int StrLib::lastIndex ( const char *  str,
char  ch 
)
static

Returns the last index of character within string (backwards search)

Parameters
strString to search
chCharacter to search for
Returns
Index within string or -1

◆ length()

int StrLib::length ( const char *  string)
static

◆ lowCase()

int StrLib::lowCase ( char *  string)
static

Converts a string to lower case

Parameters
stringString to convert

Referenced by WXP::WmoIngest::setAction().

◆ match()

bool StrLib::match ( const char *  str,
const char *  pattern 
)
static

Pattern match compare:

Parameters
strString to match
patternPattern to match against
. or ? - match a single character
  • or * - match all characters to next pattern character
    [..] - match everything within set
    [^..] - match everything not in set
    (..|..) - match a set of strings

References match().

Referenced by match().

◆ occurs()

int StrLib::occurs ( const char *  str,
char  ch 
)
static

Returns the number of times a character occurs within string

Parameters
strString to search
chCharacter to search for
Returns
Number of occurrences

◆ printf()

int StrLib::printf ( char *  str,
int  maxlen,
const char *  fmt,
  ... 
)
static

Prints formatted data into a string (similar to sprintf)

Parameters
strString to put formatted data
lenLength of string
fmtFormat to use

◆ replace()

int StrLib::replace ( char *  string,
char  tar,
char  rep 
)
static

Replaces characters in string

Parameters
stringString to convert
tarTarget character to replace
repCharacter to replace it with

Referenced by WXP::Plot::callback(), WXP::Unit::convert(), WXP::CityPlot::draw(), WXP::MosPlot::draw(), WXP::SfcPlot::draw(), WXP::UpaPlot::draw(), WXP::FileTool::makeDir(), WXP::XWindow::open(), WXP::VarFile::read(), and WXP::Unit::valid().

◆ setChar()

char StrLib::setChar ( char *  str,
int  ind,
char  ch 
)
static

Replaces a specific character

Parameters
strString to use
indIndex in that string to replace
chCharacter to put into string

Referenced by WXP::UpaWmoFile::read().

◆ splice()

int StrLib::splice ( char *  s1,
int  len1,
int  i1,
int  n,
const char *  s2 
)
static

Splices a string into another string

Parameters
s1Initial string to splice into
len1Size of first string
i1Index in s1 to start
nNumber of characters to remove
Return values
s2String to splice in

Referenced by WXP::XWindow::setFont(), and WXP::Graph::setFontSpec().

◆ stripWS()

int StrLib::stripWS ( char *  string)
static

Strips all white space characters from the string

Parameters
stringString to trim

◆ subString()

int StrLib::subString ( const char *  s1,
int  ind,
int  num,
char *  s2,
int  len2 
)
static

Outputs a substring of initial string

Parameters
s1Initial string to extract from
indIndex in s1 to start extracting
numNumber of characters to extract
Return values
s2Output string
len2Length of output string

Referenced by WXP::MosFile::decodeGFS(), WXP::MosFile::decodeGFSX(), WXP::MosFile::decodeLAMP(), WXP::MosFile::decodeNAM(), and WXP::MosFile::decodeNGM().

◆ toFloat() [1/3]

float StrLib::toFloat ( const char *  str)
static

Converts a string to an float

Parameters
strString to convert

References WXP::Const::MISS.

◆ toFloat() [2/3]

float StrLib::toFloat ( const char *  str,
int  ind 
)
static

Converts a string to an float

Parameters
strString to convert
indIndex in string of number

References WXP::Const::MISS.

◆ toFloat() [3/3]

float StrLib::toFloat ( const char *  str,
int  ind,
int  len 
)
static

Converts a string to an float

Parameters
strString to convert
indIndex in string of number
lenLength of characters to use in conversion

References length(), WXP::Const::MISS, and trimWS().

Referenced by WXP::UpaXSectCont::draw().

◆ toInt() [1/3]

int StrLib::toInt ( const char *  str)
static

Converts a string to an integer

Parameters
strString to convert

References WXP::Const::MISS.

◆ toInt() [2/3]

int StrLib::toInt ( const char *  str,
int  ind 
)
static

Converts a string to an integer

Parameters
strString to convert
indIndex in string of number

References WXP::Const::MISS.

◆ toInt() [3/3]

int StrLib::toInt ( const char *  str,
int  ind,
int  len 
)
static

Converts a string to an integer

Parameters
strString to convert
indIndex in string of number
lenLength of characters to use in conversion

References length(), WXP::Const::MISS, and trimWS().

Referenced by WXP::MosFile::decodeGFS(), WXP::MosFile::decodeGFSX(), WXP::MosFile::decodeLAMP(), WXP::MosFile::decodeNAM(), WXP::MosFile::decodeNGM(), and WXP::WmoIngest::readProdFile().

◆ trimWS()

int StrLib::trimWS ( char *  string)
static

◆ upCase()

int StrLib::upCase ( char *  string)
static

Converts a string to upper case

Parameters
stringString to convert

Referenced by WXP::WmoIngest::setAction().

◆ valid()

bool StrLib::valid ( const char *  str)
static

Checks a string for validity (non-NULL pointer, non-null string)

Parameters
strString to test

Referenced by WXP::FileTool::addOutPath(), WXP::FileTool::addPath(), WXP::Filename::checkFile(), WXP::SfcWmoFile::checkHeader(), WXP::FileTool::checkPath(), WXP::SfcWmoFile::checkStart(), WXP::ObjectAnal::compute(), WXP::MosDataTool::compute(), WXP::MosRaw::compute(), WXP::SfcRaw::compute(), WXP::UpaRaw::compute(), WXP::SfcDataTool::compute(), WXP::UpaDataTool::compute(), WXP::ResrcDB::create(), WXP::DateTool::createLabel(), WXP::ForeTime::decode(), WXP::Variable::decode(), WXP::GridPlot::draw(), WXP::HodoPlot::draw(), WXP::MdrPlot::draw(), WXP::MiscPlot::draw(), WXP::MosPlot::draw(), WXP::RcmPlot::draw(), WXP::RedbookPlot::draw(), WXP::SfcPlot::draw(), WXP::SoundPlot::draw(), WXP::UpaPlot::draw(), WXP::DatumPlot::draw(), WXP::NidsPlot::drawData(), WXP::ImagePlot::drawImage(), WXP::ContPlot::drawValues(), WXP::NidsPlot::getDomain(), WXP::Parse::getLine(), WXP::WmoParse::getLine(), WXP::MosDataTool::getUnits(), WXP::SfcDataTool::getUnits(), WXP::UpaDataTool::getUnits(), isNum(), WXP::GribFile::makeDatim(), WXP::XWindow::open(), WXP::ResrcFile::open(), WXP::Parse::open(), WXP::WmoParse::open(), WXP::Filename::print(), WXP::NameConvFile::print(), WXP::VarSpec::print(), WXP::VarSpec::printDetails(), WXP::Prog::readResrcFile(), WXP::VarName::searchFile(), WXP::ObjectAnal::set(), WXP::Timezone::set(), WXP::NameConv::set(), WXP::Filename::setFile(), WXP::NameConv::setFixDate(), WXP::MeteoPlot::setModel(), WXP::GridCont::setNameConv(), WXP::GridPlot::setNameConv(), WXP::GridVect::setNameConv(), WXP::HodoPlot::setNameConv(), WXP::Lev2Plot::setNameConv(), WXP::LightPlot::setNameConv(), WXP::MdrPlot::setNameConv(), WXP::RadPlot::setNameConv(), WXP::RcmPlot::setNameConv(), WXP::SatPlot::setNameConv(), WXP::NidsPlot::setNameConv(), WXP::Filename::setNumFiles(), WXP::Variable::toLabel(), WXP::GridMath::units(), WXP::Unit::valid(), and WXP::PngFile::write().

◆ where()

int StrLib::where ( const char *  s1,
const char *  s2 
)
static

Returns where search string is in main string

Parameters
s1Main string
s2Search string
Returns
index within main string or -1 if not in string

Referenced by WXP::Unit::simplify().


The documentation for this class was generated from the following files: