![]() |
KSquare Utilities
|
#include <KKStr.h>
Classes | |
| class | LessCaseInsensitiveOperator |
Public Types | |
| typedef const KKStr * | KKStrConstPtr |
| typedef KKStr * | KKStrPtr |
Public Member Functions | |
| KKStr () | |
| KKStr (const char *str) | |
| KKStr (const KKStr &str) | |
| Copy Constructor. More... | |
| KKStr (KKStr &&str) | |
| KKStr (kkint32 size) | |
| Creates a KKStr object that pre-allocates space for 'size' characters. More... | |
| KKStr (double d, kkint32 precision) | |
| summary>Constructs a KKStr instance form a stl::string instance. More... | |
| KKStr (const std::string &s) | |
| KKStr (const char *src, kkuint32 startPos, kkuint32 endPos) | |
| Constructs a KKStr instance from a sub-string of 'src'. More... | |
| ~KKStr () | |
| void | Append (const char *buff) |
| void | Append (const char *buff, kkuint32 buffLen) |
| void | Append (char ch) |
| void | Append (const KKStr &str) |
| void | Append (const std::string &str) |
| void | AppendInt32 (kkint32 i) |
| void | AppendUInt32 (kkuint32 i) |
| const char * | c_str () |
| bool | CharInStr (char ch) |
| void | ChopFirstChar () |
| void | ChopLastChar () |
| kkint32 | Compare (const KKStr &s2) const |
| kkint32 | Compare (const std::string &s2) const |
| Compares with STL string. More... | |
| kkint32 | CompareIgnoreCase (const KKStr &s2) const |
| Compares with another KKStr, ignoring case. More... | |
| kkint32 | CompareIgnoreCase (const std::string &s2) const |
| kkint32 | CompareIgnoreCase (const char *s2) const |
| summary>Compares to Strings and returns -1, 0, or 1, indicating if less than, equal, or greater. More... | |
| kkint32 | CompareTo (const KKStr &s2) const |
| bool | Contains (const KKStr &value) |
| bool | Contains (const char *value) |
| kkint32 | CountInstancesOf (char ch) const |
| const char * | data () |
| KKStr | DecodeQuotedStr () const |
| Trees this KKSr instance as a QuotedStr; decodes escape sequences such as '\', '', ' ', '', and '\0' into original characters. More... | |
| bool | Empty () const |
| bool | EndsWith (const KKStr &value) |
| bool | EndsWith (const char *value) |
| bool | EndsWith (const KKStr &value, bool ignoreCase) |
| bool | EndsWith (const char *value, bool ignoreCase) |
| char | EnterStr () |
| bool | EqualIgnoreCase (const KKStr &s2) const |
| bool | EqualIgnoreCase (const KKStrConstPtr s2) const |
| bool | EqualIgnoreCase (const char *s2) const |
| char | ExtractChar () |
| Removes the first character from the string and returns it to the caller. More... | |
| char | ExtractLastChar () |
| Removes the last character from the string and returns it to the caller. More... | |
| KKStr | ExtractQuotedStr (const char *delChars, bool decodeEscapeCharacters) |
| KKStr | ExtractToken (const char *delStr="\n\t\r ") |
| KKStr | ExtractToken2 (const char *delStr="\n\t\r ") |
| Extract first Token from the string. More... | |
| bool | ExtractTokenBool (const char *delStr) |
| Extract the next token from the string assuming that it is a logical True/False value. More... | |
| double | ExtractTokenDouble (const char *delStr) |
| kkint32 | ExtractTokenInt (const char *delStr) |
| kkuint32 | ExtractTokenUint (const char *delStr) |
| kkuint64 | ExtractTokenUint64 (const char *delStr) |
| kkint32 | Find (const KKStr &str, kkint32 pos=0) const |
| Will return the position where the 1st instance of 'str' after 'pos' occurs or -1 if not found. More... | |
| kkint32 | Find (const char *s, kkint32 pos, kkint32 n) const |
| kkint32 | Find (const char *s, kkint32 pos=0) const |
| kkint32 | Find (char c, kkint32 pos=0) const |
| char | FirstChar () const |
| void | FreeUpUnUsedSpace () |
| KKStr | GetNextToken2 (const char *delStr="\n\t\r ") const |
| Retrieves the first token in the string without removing any characters. More... | |
| kkint32 | InstancesOfChar (char ch) const |
| char | LastChar () const |
| void | LeftPad (kkint32 width, uchar ch= ' ') |
| pads the string with enough 'ch' characters on the left side until the string is as long as 'width' characters. More... | |
| kkuint32 | Len () const |
| Returns the number of characters in the string. More... | |
| kkint32 | LocateCharacter (char ch) const |
| Returns index of 1st occurrence of 'ch' otherwise -1. More... | |
| kkint32 | LocateLastOccurrence (char ch) const |
| Returns index of last occurrence of 'ch' otherwise -1. More... | |
| kkint32 | LocateLastOccurrence (const KKStr &s) const |
| Returns index of last occurrence of 's' otherwise -1. More... | |
| kkint32 | LocateNthOccurrence (char ch, kkint32 x) const |
| kkint32 | LocateStr (const KKStr &searchStr) const |
| Returns index of 1st occurrence of 'searchStr' otherwise -1. More... | |
| void | LopOff (kkint32 lastCharPos) |
| Trims off all characters after the 'lastCharPos' index; to make an empty string you would have to specify -1. More... | |
| void | Lower () |
| Make all characters in the String into lower case. More... | |
| KKStr | MaxLen (kkuint32 maxLen) const |
| kkuint32 | MaxLenSupported () const |
| kkint32 | MemoryConsumedEstimated () const |
| bool | operator!= (const KKStr &right) const |
| bool | operator!= (KKStrConstPtr right) const |
| bool | operator!= (const char *rtStr) const |
| bool | operator!= (const std::string right) const |
| KKStr | operator+ (const char *right) const |
| KKStr | operator+ (const KKStr &right) const |
| KKStr | operator+ (kkint16 right) const |
| KKStr | operator+ (kkuint16 right) const |
| KKStr | operator+ (kkint32 right) const |
| KKStr | operator+ (kkuint32 right) const |
| KKStr | operator+ (kkint64 right) const |
| KKStr | operator+ (kkuint64 right) const |
| KKStr | operator+ (float right) const |
| KKStr | operator+ (double right) const |
| KKStr & | operator+= (const char *right) |
| KKStr & | operator+= (const KKStr &right) |
| KKStr & | operator+= (kkint16 right) |
| KKStr & | operator+= (kkuint16 right) |
| KKStr & | operator+= (kkint32 right) |
| KKStr & | operator+= (kkuint32 right) |
| KKStr & | operator+= (kkint64 right) |
| KKStr & | operator+= (kkuint64 right) |
| KKStr & | operator+= (float right) |
| KKStr & | operator+= (double right) |
| bool | operator< (const KKStr &right) const |
| KKStr & | operator<< (const char *right) |
| KKStr & | operator<< (const KKStr &right) |
| KKStr & | operator<< (KKStr &&right) |
| KKStr & | operator<< (char right) |
| KKStr & | operator<< (kkint16 right) |
| KKStr & | operator<< (kkuint16 right) |
| KKStr & | operator<< (kkint32 right) |
| KKStr & | operator<< (kkuint32 right) |
| KKStr & | operator<< (kkint64 right) |
| KKStr & | operator<< (kkuint64 right) |
| KKStr & | operator<< (float right) |
| KKStr & | operator<< (double right) |
| KKStr & | operator<< (std::ostream &(*mf)(std::ostream &)) |
| bool | operator<= (const KKStr &right) const |
| KKStr & | operator= (const KKStr &src) |
| KKStr & | operator= (KKStr &&src) |
| KKStr & | operator= (const char *src) |
| KKStr & | operator= (kkint32 right) |
| KKStr & | operator= (const std::vector< KKStr > &right) |
| bool | operator== (const KKStr &right) const |
| bool | operator== (KKStrConstPtr right) const |
| bool | operator== (const char *rtStr) const |
| bool | operator== (const std::string right) const |
| bool | operator> (const KKStr &right) const |
| bool | operator>= (const KKStr &right) const |
| char | operator[] (kkint16 i) const |
| char | operator[] (kkuint16 i) const |
| char | operator[] (kkint32 i) const |
| char | operator[] (kkuint32 i) const |
| VectorKKStr | Parse (const char *delStr="\n\r\t, ") const |
| Will break up the contents of the string into tokens where one of the characters in 'delStr' separates each token. More... | |
| KKStr | QuotedStr () const |
| Returns a quoted version of string where special characters Line-Feed, Carriage Return, and Tab, are encoded as escape sequences. More... | |
| void | ReadXML (XmlStream &s, XmlTagConstPtr tag, VolConstBool &cancelFlag, RunLog &log) |
| void | RightPad (kkint32 width, char ch= ' ') |
| Pads string on the right side with specified character so that the string will be of specified length. More... | |
| VectorKKStr | Split (const char *delStr="\n\r\t, ") const |
| Breaks up the contents of the string into tokens where the characters in 'delStr' acts as separates each token. More... | |
| VectorKKStr | Split (char del) const |
| Splits the string up into tokens using 'del' as the separator returning them in a vector. More... | |
| bool | StartsWith (const KKStr &value) const |
| bool | StartsWith (const char *value) const |
| bool | StartsWith (const KKStr &value, bool ignoreCase) const |
| bool | StartsWith (const char *value, bool ignoreCase) const |
| const char * | Str () const |
| Returns a pointer to a ascii string. More... | |
| bool | StrInStr (const KKStr &searchField) const |
| Searches for the occurrence of 'searchField' and where in the string. If found will return 'true' otherwise 'false'. More... | |
| void | StrReplace (char **dest, const char *src) |
| Replaces the contents of *dest with *src. More... | |
| wchar_t * | StrWide () const |
| KKStr | SubStrPart (kkint32 firstChar) const |
| returns a SubString consisting of all characters starting at index 'firstChar' until the end of the string. More... | |
| KKStr | SubStrPart (kkint32 firstChar, kkint32 lastChar) const |
| returns a SubString consisting of all characters starting at index 'firstChar' and ending at 'lastIndex' More... | |
| KKStr | Tail (kkint32 tailLen) const |
| Returns a string consisting of the 'tailLen' characters from the end of the string. More... | |
| bool | ToBool () const |
| Returns the bool equivalent of the string, ex 'Yes' = true, 'No' = false, 'True' = true, etc. More... | |
| double | ToDouble () const |
| float | ToFloat () const |
| kkint32 | ToInt () const |
| kkint16 | ToInt16 () const |
| kkint32 | ToInt32 () const |
| kkint64 | ToInt64 () const |
| KKStrPtr | ToKKStrPtr () const |
| double | ToLatitude () const |
| Processes string as if a standard latitude; ex: "15:32.2S" = -15.53833. More... | |
| long | ToLong () const |
| double | ToLongitude () const |
| Processes string as if a standard longitude; ex: "95:32.2E" = 95.53833. More... | |
| KKStr | ToLower () const |
| float | ToPercentage () const |
| KKStr | ToQuotedStr () const |
| kkuint32 | ToUint () const |
| kkuint32 | ToUint32 () const |
| kkuint64 | ToUint64 () const |
| ulong | ToUlong () const |
| KKStr | ToUpper () const |
| VectorInt32 * | ToVectorInt32 () const |
| wchar_t * | ToWchar_t () const |
| KKStr | ToXmlStr () const |
| KKStr & | Trim (const char *whiteSpaceChars="\n\r\t ") |
| void | TrimLeft (const char *whiteSpaceChars="\n\r\t ") |
| KKStr & | TrimRight (const char *whiteSpaceChars="\n\r\t ") |
| void | TrimRightChar () |
| void | Upper () |
| Converts all characters in string to their Upper case equivalents via 'toupper'. More... | |
| bool | ValidInt (kkint32 &value) |
| bool | ValidMoney (float &value) const |
| bool | ValidNum (double &value) const |
| KKStr | Wide (kkint32 width, char dir= 'R') const |
| Pads the string with spaces so that it is exactly 'width' characters long. Can pad either left, right, or center as specified by 'dir'. If KKStr Already greater than 'width' will truncate new string. /summary> param name='width'> Width of KKStr; will pad KKStr with spaces until it is width long. param name='dir'>Direction to pad from 'L' - Pad on the left side, 'R' - Pad on the right side, and 'C' - Pad on left and Right so that text is centered. More... | |
| void | WriteXML (const KKStr &varName, std::ostream &o) const |
Static Public Member Functions | |
| static kkint32 | CompareStrings (const KKStr &s1, const KKStr &s2) |
| Compares to Strings and returns -1, 0, or 1, indicating if less than, equal, or greater. More... | |
| static KKStr | Concat (const char **values) |
| static KKStr | Concat (const VectorKKStr &values) |
| static KKStr | Concat (const std::vector< std::string > &values) |
| Concatenates the list of 'std::string' strings. More... | |
| static const KKStr & | EmptyStr () |
| Static method that returns an Empty String. More... | |
| static void | MemCpy (void *dest, void *src, kkuint32 size) |
| static void | MemSet (void *dest, kkuint8 byte, kkuint32 size) |
| static KKStr | Spaces (kkint32 c) |
| Returns a string of spaces 'c' characters long. More... | |
| static const char * | Str (const char *s) |
| static void | StrCapitalize (char *str) |
| static const char * | StrChr (const char *str, int ch) |
| static kkint32 | StrCompareIgnoreCase (const char *s1, const char *s2) |
| static void | StrDelete (char **str) |
| static bool | StrEqual (const char *s1, const char *s2) |
| static bool | StrEqualN (const char *s1, const char *s2, kkuint32 len) |
| static bool | StrEqualNoCase (const char *s1, const char *s2) |
| static bool | StrEqualNoCaseN (const char *s1, const char *s2, kkuint32 len) |
| static bool | StrInStr (const char *target, const char *searchStr) |
| typedef const KKStr* KKB::KKStr::KKStrConstPtr |
| typedef KKStr* KKB::KKStr::KKStrPtr |
| KKStr::KKStr | ( | ) |
Definition at line 527 of file KKStr.cpp.
Referenced by KKB::Application::Application(), KKMLL::Attribute::Attribute(), KKB::BmpImage::BmpImage(), KKMLL::ClassificationBiasMatrix::ClassificationBiasMatrix(), KKMLL::Classifier2::Classifier2(), KKB::Configuration::Configuration(), ExtractToken2(), KKMLL::FeatureVector::FeatureVector(), KKMLL::FeatureVectorList::FeatureVectorList(), KKB::KKException::KKException(), KKMLL::Model::Model(), KKMLL::ModelParam::ModelParam(), KKMLL::ModelParamDual::ModelParamDual(), KKMLL::NormalizationParms::NormalizationParms(), KKMLL::Orderings::Orderings(), KKB::Raster::Raster(), KKLSC::ScannerFile::ScannerFile(), KKLSC::ScannerFileEntry::ScannerFileEntry(), KKMLL::SVMModel::SVMModel(), KKMLL::SVMparam::SVMparam(), KKMLL::TrainingClass::TrainingClass(), KKMLL::TrainingClassList::TrainingClassList(), KKMLL::TrainingConfiguration2::TrainingConfiguration2(), KKMLL::TrainingProcess2::TrainingProcess2(), KKB::XmlStream::XmlStream(), and KKB::XmlTag::XmlTag().
| KKStr::~KKStr | ( | ) |
| KKStr::KKStr | ( | const char * | str | ) |
Definition at line 537 of file KKStr.cpp.
References KKB::STRCOPY().
Referenced by KKMLL::TrainingConfiguration2::Factory::Factory(), KKB::KKException::KKException(), KKMLL::FeatureFileIO::LoadInSubDirectoryTree(), KKB::operator+(), KKB::osGetCurrentDirectory(), KKB::osGetFileNamePartOfFile(), KKB::osGetPathPartOfFile(), KKB::KKStrList::ParseDelimitedString(), KKMLL::ConfusionMatrix2::PrintConfusionMatrix(), KKMLL::ConfusionMatrix2::PrintConfusionMatrixHTML(), KKMLL::ConfusionMatrix2::PrintConfusionMatrixLatexTable(), KKMLL::ConfusionMatrix2::PrintConfusionMatrixNarrow(), KKMLL::ConfusionMatrix2::PrintConfusionMatrixTabDelimited(), KKB::StrFormatDouble(), KKB::StrFormatInt64(), KKB::StrFromDouble(), KKB::StrFromFloat(), KKB::StrFromInt16(), KKB::StrFromInt32(), KKB::StrFromInt64(), KKB::StrFromUint16(), KKB::StrFromUint32(), KKB::StrFromUint64(), KKMLL::TrainingConfiguration2::TrainingConfiguration2(), KKMLL::TrainingProcess2::TrainingProcess2(), and Wide().
| KKStr::KKStr | ( | const KKStr & | str | ) |
Copy Constructor.
Definition at line 561 of file KKStr.cpp.
References Concat(), KKB::KKException::KKException(), operator+(), KKB::operator+(), and KKB::StrFromUint16().
Referenced by KKMLL::Attribute::AddANominalValue(), KKB::Application::Application(), KKMLL::Attribute::Attribute(), KKB::BmpImage::BmpImage(), KKB::Chart::Chart(), KKMLL::ClassificationBiasMatrix::ClassificationBiasMatrix(), KKMLL::SizeDistribution::ClassTotals::ClassTotals(), KKB::CmdLineExpander::CmdLineExpander(), KKB::Configuration::Configuration(), KKB::Configuration::ConfSection::ConfSection(), KKMLL::BinaryClassParms::CreateFromTabDelStr(), KKMLL::TrainingConfiguration2::Factory::Factory(), KKMLL::FactoryFVProducer::FactoryFVProducer(), KKMLL::FeatureFileIO::FeatureFileIO(), KKMLL::FeatureVector::FeatureVector(), KKMLL::FeatureVectorList::FeatureVectorList(), KKMLL::FeatureVectorProducer::FeatureVectorProducer(), KKB::PointList::FromDelStr(), KKMLL::FeatureFileIOC45::GetFileDesc(), KKB::HTMLReport::HTMLReport(), KKB::ImageDirTree::ImageDirTree(), KKB::KKException::KKException(), KKJobManagment::KKJobManager::KKJobManager(), KKB::KKObserver::KKObserver(), KKB::KKThread::KKThread(), KKMLL::FeatureFileIODstWeb::LoadFile(), KKB::KKStrListIndexed::LookUp(), KKMLL::AttributeList::LookUpByName(), KKMLL::Model::Model(), KKMLL::ModelParam::ModelParam(), KKMLL::ModelParamDual::ModelParamDual(), KKB::MsgQueue::MsgQueue(), KKMLL::Orderings::Orderings(), KKB::osAddSlash(), KKB::osCopyFileBetweenDirectories(), KKB::osLookForFile(), KKB::osMakeFullFileName(), KKB::osMoveFileBetweenDirectories(), KKB::osReadRestOfLine2(), KKB::osRemoveExtension(), KKB::osSubstituteInEnvironmentVariables(), Parse(), KKMLL::ModelParam::ParseCmdLine(), KKMLL::ModelParamOldSVM::ParseCmdLine(), KKMLL::SVMparam::ParseCmdLineParameter(), KKMLL::ClassAssignments::ParseToString(), KKMLL::SizeDistribution::ClassTotals::PrintFormatedLine(), KKMLL::ProbNamePair::ProbNamePair(), KKB::Raster::Raster(), KKB::RasterBuffer::RasterBuffer(), KKB::KKStrListIndexed::ReadXML(), KKMLL::GrayScaleImagesFVList::RecalcFeatureValuesFromImagesInDirTree(), KKLSC::ScannerFile::ScannerFile(), KKLSC::ScannerFileEntry::ScannerFileEntry(), KKB::Chart::Series::Series(), KKB::Configuration::Setting::Setting(), KKB::Configuration::SettingValueToStr(), Split(), KKJobManagment::KKJobManager::StatusFileProcessLine(), KKLSC::Variables::SubstituteInEnvironmentVariables(), KKMLL::SVMparam::SVMparam(), KKB::TokenBufferStr::TokenBufferStr(), KKB::TokenBufferStream::TokenBufferStream(), ToKKStrPtr(), ToLatitude(), ToLongitude(), ToLower(), KKMLL::MLClass::ToString(), ToUpper(), KKMLL::TrainingClass::TrainingClass(), KKMLL::TrainingClassList::TrainingClassList(), KKMLL::TrainingConfiguration2::TrainingConfiguration2(), KKB::Chart::XLabel::XLabel(), KKB::XmlAttribute::XmlAttribute(), KKB::XmlFactory::XmlFactory(), KKB::XmlFactoryManager::XmlFactoryManager(), KKB::XmlStream::XmlStream(), and KKB::XmlTag::XmlTag().
| KKStr::KKStr | ( | KKStr && | str | ) |
| KKStr::KKStr | ( | kkint32 | size | ) |
Creates a KKStr object that pre-allocates space for 'size' characters.
Creates a KKStr object that has 'size' characters preallocated; and set to empty string.
summary> Initializes the string with a displayable version of d with precision decimal points.
Definition at line 655 of file KKStr.cpp.
Referenced by KKMLL::FileDesc::AddANominalValue(), KKB::XmlTag::AddAtribute(), KKMLL::FeatureVector::AddFeatureData(), KKB::KKThread::AddMsg(), KKB::BitString::BitString(), Concat(), KKMLL::FeatureEncoder::CreateEncodedFileDesc(), DecodeQuotedStr(), KKB::Matrix::DeterminantSlow(), KKMLL::FeatureEncoder::EncodeAExample(), ExtractQuotedStr(), KKMLL::FeatureFileIO::FileFormatsReadAndWriteOptionsStr(), KKMLL::FeatureFileIO::FileFormatsReadOptionsStr(), KKMLL::FeatureFileIO::FileFormatsWrittenOptionsStr(), KKMLL::CrossValidationVoting::FoldAccuracysToStr(), KKMLL::CrossValidation::FoldAccuracysToStr(), KKMLL::CrossValidationVoting::FoldStr(), FreeUpUnUsedSpace(), KKMLL::FeatureFileIODstWeb::GetFileDesc(), KKMLL::FeatureFileIOC45::GetFileDesc(), KKB::KKStrParser::GetNextToken(), KKB::KKStrParser::GetRestOfLine(), KKB::KKStrParser::GetRestOfStr(), KKLSC::ScannerFile::GuessFormatOfFile(), KKB::BitString::HexStr(), KKB::Raster::Histogram(), KKB::Matrix::Inverse(), LeftPad(), KKB::BitString::ListOfSetBits16(), KKMLL::FeatureFileIOUCI::LoadFile(), KKB::Matrix::Matrix(), KKB::DateType::MM_DD_YY(), KKB::DateType::MMM_DD_YYYY(), KKB::Matrix::operator*(), KKB::Matrix::operator+(), operator+(), KKB::operator+(), KKB::Matrix::operator+=(), KKB::Matrix::operator-(), KKB::operator<<(), KKB::RunLog::operator<<(), operator<<(), KKB::Matrix::operator[](), KKMLL::FeatureNumList::operator[](), KKB::osReadNextLine(), KKB::osReadNextQuotedStr(), KKB::osReadRestOfLine(), KKB::KKStrParser::PeekNextToken(), KKMLL::ConfusionMatrix2::PrintAccuracyByProbByClassHTML(), KKMLL::BinaryClassParmsList::PushOnBack(), KKMLL::FeatureVectorList::PushOnBack(), KKMLL::BinaryClassParmsList::PushOnFront(), KKMLL::FeatureVectorList::PushOnFront(), QuotedStr(), KKLSC::ScannerFile::ReadHeader(), KKMLL::ModelKnn::ReadXML(), KKMLL::ModelUsfCasCor::ReadXML(), KKMLL::ModelSvmBase::ReadXML(), KKMLL::ModelDual::ReadXML(), KKMLL::ModelOldSVM::ReadXML(), KKMLL::Model::ReadXMLModelToken(), KKMLL::ModelDual::ReconcilePredictions(), KKB::XmlFactoryManager::RegisterFactory(), KKMLL::FeatureVector::ResetNumOfFeatures(), KKB::SaveImagePGM(), KKB::SaveImagePNG(), KKB::SaveImagePPM(), StripOutInvalidLatexCaracters(), KKB::KKStrParser::SubStrPart(), SubStrPart(), KKMLL::ModelParamOldSVM::SvmParamToString(), KKMLL::SVMparam::SvmParamToString(), KKMLL::ModelParamSvmBase::ToCmdLineStr(), KKMLL::ModelParamUsfCasCor::ToCmdLineStr(), KKMLL::ModelParamDual::ToCmdLineStr(), SVM233::svm_parameter::ToCmdLineStr(), KKMLL::ModelParam::ToCmdLineStr(), SVM289_BFS::svm_parameter::ToCmdLineStr(), SVM289_MFS::svm_parameter::ToCmdLineStr(), KKMLL::ModelParamOldSVM::ToCmdLineStr(), KKMLL::MLClassIndexList::ToCommaDelString(), KKJobManagment::KKJob::ToStatusStr(), KKJobManagment::KKJobManager::ToStatusStr(), KKMLL::FeatureNumList::ToString(), KKMLL::SVMparam::ToString(), KKLSC::ScannerFileEntry::ToTabDelStr(), KKLSC::StartStopPoint::ToTabDelStr(), SVM233::svm_parameter::ToTabDelStr(), SVM289_BFS::svm_parameter::ToTabDelStr(), SVM289_MFS::svm_parameter::ToTabDelStr(), ToXmlStr(), KKLSC::ScannerFile::WriteHeader(), KKLSC::ScannerFile::WriteInstrumentDataWord(), SVM289_MFS::Svm_Model::WriteXML(), KKMLL::SVMModel::WriteXML(), KKB::DateType::YY_MM_DD(), KKB::DateType::YYYY_MM_DD(), KKB::DateType::YYYY_MMM_DD(), and KKB::DateType::YYYYMMDD().
| KKStr::KKStr | ( | double | d, |
| kkint32 | precision | ||
| ) |
summary>Constructs a KKStr instance form a stl::string instance.
Creates a String that is populated with 'd' as displayable characters and precision of 'precision'.
Definition at line 617 of file KKStr.cpp.
References KKB::SPRINTF(), and KKB::STRCOPY().
| KKStr::KKStr | ( | const std::string & | s | ) |
summary> Constructs an instance from a substring of the ascii-z string src .
param name='src'> Source string to build new instance from.
param name = 'startPos'> Index of first character that we want to include in new instance.
param name='endPos'> Index of last character that we want to include in new instance.
Definition at line 677 of file KKStr.cpp.
Constructs a KKStr instance from a sub-string of 'src'.
Definition at line 693 of file KKStr.cpp.
References KKB::KKException::KKException().
Referenced by KKB::KKStrParser::GetNextToken(), KKB::KKStrParser::PeekNextToken(), and KKLSC::ScannerFile::ReportTextMsg().
| void KKStr::Append | ( | const char * | buff | ) |
Definition at line 1783 of file KKStr.cpp.
References KKB::KKException::KKException(), KKB::operator+(), and KKB::StrFromUint32().
Referenced by AppendInt32(), AppendUInt32(), Concat(), operator+(), operator<<(), QuotedStr(), and ToXmlStr().
| void KKStr::Append | ( | const char * | buff, |
| kkuint32 | buffLen | ||
| ) |
Definition at line 1821 of file KKStr.cpp.
References KKB::KKException::KKException(), KKB::operator+(), and KKB::StrFromUint32().
Referenced by Append(), and SubStrPart().
| void KKStr::Append | ( | char | ch | ) |
Definition at line 1863 of file KKStr.cpp.
References KKB::KKException::KKException(), KKB::operator+(), and KKB::StrFromUint32().
Referenced by AppendInt32(), AppendUInt32(), DecodeQuotedStr(), ExtractQuotedStr(), KKB::KKStrParser::GetNextToken(), KKB::KKStrParser::GetRestOfLine(), KKB::KKStrParser::GetRestOfStr(), KKB::BitString::HexStr(), KKB::operator+(), operator<<(), KKB::osReadNextLine(), KKB::osReadRestOfLine(), KKB::KKStrParser::PeekNextToken(), QuotedStr(), KKLSC::ScannerFile::ReadHeaderOneLine(), KKMLL::ModelDual::ReconcilePredictions(), StripOutInvalidLatexCaracters(), KKB::KKStrParser::SubStrPart(), and ToXmlStr().
| void KKStr::Append | ( | const KKStr & | str | ) |
Definition at line 1887 of file KKStr.cpp.
References Append().
Referenced by operator+(), KKB::operator+(), KKMLL::operator<<(), and ReadXML().
| void KKStr::AppendInt32 | ( | kkint32 | i | ) |
Definition at line 1901 of file KKStr.cpp.
References Append().
Referenced by KKB::RunLog::operator<<(), and operator<<().
| void KKStr::AppendUInt32 | ( | kkuint32 | i | ) |
Definition at line 1940 of file KKStr.cpp.
References Append().
Referenced by KKB::RunLog::operator<<(), and operator<<().
|
inline |
Definition at line 585 of file KKStr.h.
References Str().
| bool KKStr::CharInStr | ( | char | ch | ) |
| void KKStr::ChopFirstChar | ( | ) |
Removes the first character from the string.
Definition at line 1649 of file KKStr.cpp.
Referenced by KKB::PointList::FromDelStr(), ToLatitude(), and ToLongitude().
| void KKStr::ChopLastChar | ( | ) |
Removes the last character from the string.
Definition at line 1668 of file KKStr.cpp.
Referenced by KKMLL::FeatureFileIODstWeb::AttrDescLine::AttrDescLine(), KKMLL::FeatureFileIOC45::GetFileDesc(), KKMLL::FeatureFileIODstWeb::LoadFile(), KKB::osGetDirNameFromPath(), KKB::osGetParentDirectoryOfDirPath(), KKB::osGetParentDirPath(), KKB::osGetRootNameOfDirectory(), ToLatitude(), and ToLongitude().
'-1' = less than 's2', '0' = Same as 's2', and '1' = Greater than 's2'.
Definition at line 844 of file KKStr.cpp.
Referenced by CompareTo(), operator!=(), operator<(), operator<=(), operator==(), operator>(), and operator>=().
| kkint32 KKStr::Compare | ( | const std::string & | s2 | ) | const |
Compares with STL string.
'-1' = less than 's2', '0' = Same as 's2', and '1' = Greater than 's2'.
| [in] | s2 | STL String std::string that we will compare with. |
Definition at line 881 of file KKStr.cpp.
Compares with another KKStr, ignoring case.
summary>Compares with STL string ignoring case.
| s2 | STL String std::string that we will compare with. |
returns> -1=less, 0=equal, 1=greater, -1, 0, or 1, indicating if less than, equal, or greater.
| [in] | s2 | Other String to compare with. |
Definition at line 919 of file KKStr.cpp.
Referenced by EqualIgnoreCase().
| kkint32 KKStr::CompareIgnoreCase | ( | const std::string & | s2 | ) | const |
summary>Compares with ascii-z string ignoring case.
param name='s2'> Ascii-z string to compare with.
returns> -1=less, 0=equal, 1=greater, -1, 0, or 1, indicating if less than, equal, or greater.
Definition at line 998 of file KKStr.cpp.
| kkint32 KKStr::CompareIgnoreCase | ( | const char * | s2 | ) | const |
summary>Compares to Strings and returns -1, 0, or 1, indicating if less than, equal, or greater.
Compares with ascii-z string ignoring case.
| [in] | s2 | Ascii-z string to compare with. |
Definition at line 955 of file KKStr.cpp.
Referenced by KKJobManagment::KKJob::JobStatusFromStr(), KKB::DateType::MonthFromStr(), KKJobManagment::KKJob::PrerequisitesFromStr(), and KKJobManagment::KKJobManager::StatusFileProcessLine().
Compares to Strings and returns -1, 0, or 1, indicating if less than, equal, or greater.
summary> Concatenates the list of char* strings, stopping at first NULL. Each of these NULL terminated strings are concatenated onto the result string; terminates when 'values[x] == NULL'. /summary>
Definition at line 4714 of file KKStr.cpp.
Referenced by KKB::KKStrList::StringComparison::operator()().
|
static |
summary> Concatenates the list of char* strings, stops at first NULL Each of these NULL terminated strings are concatenated onto the result string; terminates when 'values[x] == NULL'. /summary>
Definition at line 1031 of file KKStr.cpp.
References Append(), Concat(), and KKStr().
|
static |
|
static |
Concatenates the list of 'std::string' strings.
Iterates through values concatenating each one onto a result string.
Iterates through values Concatenating each one onto a result string.
Definition at line 1082 of file KKStr.cpp.
References Concat(), and KKStr().
Referenced by KKMLL::ConfusionMatrix2::AccuracyStr(), KKLSC::ScannerHeaderFields::Add(), KKB::XmlElementKeyValuePairs::Add(), KKMLL::Attribute::AddANominalValue(), KKMLL::FileDesc::AddANominalValue(), KKB::XmlTag::AddAtribute(), KKMLL::FeatureVector::AddFeatureData(), KKB::MsgQueue::AddMsg(), KKB::KKThread::AddMsg(), KKMLL::FeatureVectorList::AddQueue(), KKB::RasterBuffer::AddRaster(), KKMLL::DuplicateImages::AddSingleExample(), KKMLL::FeatureFileIO::AppendToFile(), KKMLL::FeatureFileIODstWeb::AttrDescLine::AttrDescLine(), KKB::XmlAttributeList::AttributeValueKKStr(), KKMLL::GrayScaleImagesFVList::BackOfQueue(), KKB::KKStrList::BinarySearch(), KKB::BitString::BitString(), KKMLL::TrainingConfiguration2::BuildTrainingClassListFromDirectoryStructure(), KKMLL::FileDesc::Cardinality(), KKMLL::MLClass::ChangeNameOfClass(), KKMLL::Classifier2::Classifier2(), KKMLL::FeatureVector::ClassName(), KKMLL::FeatureVectorList::ClassStatisticsStr(), KKB::CmdLineExpander::CmdLineExpander(), KKMLL::GrayScaleImagesFVProducer::ComputeFeatureVector(), Concat(), KKMLL::TrainingConfiguration2::ConfigFileExists(), KKLSC::Variables::ConfigurationDir(), KKMLL::Model::CreateAModel(), KKMLL::FeatureEncoder2::CreateEncodedFileDesc(), KKMLL::FeatureEncoder::CreateEncodedFileDesc(), KKMLL::TrainingConfiguration2::CreateFromDirectoryStructure(), KKMLL::TrainingConfiguration2::CreateFromFeatureVectorList(), KKMLL::BinaryClassParms::CreateFromTabDelStr(), KKMLL::ClassProbList::CreateFromXMLStream(), KKMLL::MLClass::CreateNewMLClass(), KKMLL::Orderings::CreateOrderingsObjFromFileIfAvaliable(), KKB::BmpImage::CodedPixels::CreatePixelDataStructure8Bit(), KKLSC::ScannerFile::CreateScannerFileForOutput(), KKMLL::TrainingProcess2::CreateTrainingProcess(), KKMLL::TrainingProcess2::CreateTrainingProcessForLevel(), KKB::DateTime::DateTime(), KKB::DateType::DateType(), DecodeQuotedStr(), KKMLL::ModelSvmBase::Description(), KKMLL::ModelOldSVM::Description(), KKMLL::ModelDual::Description(), KKB::Matrix::DeterminantSlow(), KKMLL::TrainingConfiguration2::DirectoryPathForClass(), EmptyStr(), KKMLL::FeatureEncoder::EncodeAExample(), KKMLL::ModelParam::EncodingMethodFromStr(), KKMLL::EncodingMethodFromStr(), KKB::GoalKeeper::EndBlock(), KKMLL::DuplicateImage::ExampleWithSmallestScanLine(), KKMLL::TrainingClass::ExpandedDirectory(), KKB::Raster::ExtractBlobs(), KKB::Raster::ExtractChannel(), KKMLL::FeatureVectorList::ExtractDuplicatesByRootImageFileName(), KKMLL::FeatureVectorList::ExtractExamplesForAGivenClass(), KKMLL::FeatureNumList::ExtractFeatureNumsFromStr(), KKMLL::MLClassList::ExtractHTMLTableHeader(), ExtractQuotedStr(), KKMLL::MLClassList::ExtractThreeTitleLines(), ExtractToken(), ExtractToken2(), ExtractTokenBool(), ExtractTokenDouble(), ExtractTokenInt(), ExtractTokenUint(), ExtractTokenUint64(), KKMLL::MLClassList::ExtractTwoTitleLines(), KKMLL::FeatureFileIO::FeatureDataReSink(), KKMLL::FeatureEncoder::FeatureEncoder(), KKMLL::FeatureVectorProducer::FeatureName(), KKMLL::FeatureVectorList::FeatureVectorList(), KKMLL::FeatureFileIO::FileFormatsReadAndWriteOptionsStr(), KKMLL::FeatureFileIO::FileFormatsReadOptionsStr(), KKMLL::FeatureFileIO::FileFormatsWrittenOptionsStr(), KKMLL::SVMModel::FindWorstSupportVectors(), KKMLL::SVMModel::FindWorstSupportVectors2(), KKMLL::ConfusionMatrix2::FMeasure(), KKMLL::CrossValidationVoting::FoldAccuracysToStr(), KKMLL::CrossValidation::FoldAccuracysToStr(), KKMLL::CrossValidationVoting::FoldStr(), KKB::Configuration::FormatErrorsWithLineNumbers(), FreeUpUnUsedSpace(), KKB::PointList::FromDelStr(), GetClassNameByHierarchyLevel(), KKMLL::MLClass::GetClassNameFromDirName(), KKMLL::TrainingConfiguration2::GetEffectiveConfigFileName(), KKMLL::FileDesc::GetExistingFileDesc(), KKMLL::FeatureFileIODstWeb::GetFileDesc(), KKMLL::FeatureFileIOColumn::GetFileDesc(), KKMLL::FeatureFileIOC45::GetFileDesc(), KKMLL::FeatureFileIOUCI::GetFileDesc(), KKMLL::FeatureFileIOSparse::GetFileDesc(), KKB::KKStrParser::GetNextToken(), KKB::XmlStream::GetNextToken(), KKB::KKStrParser::GetNextTokenChar(), KKMLL::Attribute::GetNominalValue(), KKLSC::ScannerFileEntry::GetOrCreateScannerFileEntry(), KKB::KKStrParser::GetRestOfLine(), KKB::KKStrParser::GetRestOfStr(), KKLSC::ScannerHeaderFields::GetValue(), KKLSC::ScannerFile::GetValue(), KKLSC::ScannerHeaderFields::GetValueFloat(), KKLSC::ScannerHeaderFields::GetValueInt32(), KKMLL::GrayScaleImagesFVList::GrayScaleImagesFVList(), KKLSC::ScannerFile::GuessFormatOfFile(), KKB::BitString::HexStr(), KKB::Raster::Histogram(), KKLSC::Variables::HomeDir(), KKJobManagment::KKJobManager::InitilizeJobManager(), KKB::Matrix::Inverse(), KKMLL::KernalTypeFromStr(), KKStr(), LeftPad(), KKB::BitString::ListOfSetBits16(), KKMLL::TrainingConfiguration2::Load(), KKMLL::FeatureNumList::Load(), KKMLL::TrainingProcess2::LoadExistingTrainingProcess(), KKMLL::FeatureFileIOC45::LoadFeatureFile(), KKMLL::FeatureFileIO::LoadFeatureFile(), KKMLL::FeatureFileIODstWeb::LoadFile(), KKMLL::FeatureFileIOColumn::LoadFile(), KKMLL::FeatureFileIOUCI::LoadFile(), KKMLL::FeatureFileIOC45::LoadFile(), KKMLL::FeatureFileIOSparse::LoadFile(), KKLSC::ScannerFile::LoadIndexFile(), KKMLL::FeatureFileIO::LoadInSubDirectoryTree(), KKMLL::TrainingConfiguration2::LoadOtherClasssExamples(), KKMLL::TrainingConfiguration2List::LookUp(), KKB::KKStrListIndexed::LookUp(), KKMLL::AttributeList::LookUpByName(), KKMLL::FeatureVectorList::LookUpByRootName(), KKMLL::MachineTypeFromStr(), KKB::Matrix::Matrix(), KKMLL::FileDesc::MergeSymbolicFields(), KKMLL::MLClass::MLClassForGivenHierarchialLevel(), KKMLL::FeatureVector::MLClassName(), KKB::DateType::MM_DD_YY(), KKB::DateType::MMM_DD_YYYY(), KKMLL::ClassStatistic::Name(), KKB::XmlElement::NameTagStr(), KKMLL::FileDesc::NewContinuousDataOnly(), KKMLL::FeatureVectorList::RootNameComparrison::operator()(), KKMLL::FeatureVectorList::RootNameComparrisonReversed::operator()(), KKMLL::FeatureVectorList::ClassNameComparrison::operator()(), KKMLL::FeatureVectorList::ClassNameComparrisonReversed::operator()(), KKB::KKStrList::StringComparison::operator()(), KKB::Matrix::operator*(), KKB::Matrix::operator+(), operator+(), KKB::operator+(), KKB::Matrix::operator+=(), KKB::Matrix::operator-(), KKB::operator<<(), KKB::RunLog::operator<<(), operator<<(), operator=(), KKB::Matrix::operator[](), KKMLL::FeatureNumList::operator[](), KKB::osAddSlash(), KKB::osCopyFile(), KKB::osCopyFileBetweenDirectories(), KKB::osCreateDirectoryPath(), KKB::osCreateUniqueFileName(), osFileNameMatchesSearchFields(), KKB::osGetCurrentDirectory(), KKB::osGetDirNameFromPath(), KKB::osGetErrorNoDesc(), KKB::osGetFileExtension(), KKB::osGetFileNamePartOfFile(), KKB::osGetHostName(), KKB::osGetListOfFilesInDirectoryTree(), KKB::osGetListOfImageFiles(), KKB::osGetParentDirectoryOfDirPath(), KKB::osGetParentDirPath(), KKB::osGetPathPartOfFile(), KKB::osGetProgName(), KKB::osGetRootName(), KKB::osGetRootNameOfDirectory(), KKB::osGetRootNameWithExtension(), KKB::osGetUserName(), KKB::osLookForFile(), KKB::osMakeFullFileName(), KKB::osMoveFileBetweenDirectories(), KKB::osParseFileSpec(), KKB::osReadNextLine(), KKB::osReadNextQuotedStr(), KKB::osReadRestOfLine(), KKB::osReadRestOfLine2(), KKB::osRemoveExtension(), KKB::osSubstituteInEnvironmentVariables(), KKMLL::ModelOldSVM::Param(), KKMLL::MLClass::ParentName(), Parse(), KKMLL::MLClassIndexList::ParseClassIndexList(), KKMLL::ModelParam::ParseCmdLine(), KKMLL::ModelParamOldSVM::ParseCmdLine(), KKMLL::SVMparam::ParseCmdLineParameter(), KKB::KKStrList::ParseDelimitedString(), KKLSC::ScannerFileEntry::ParseTabDelStr(), KKLSC::StartStopPoint::ParseTabDelStr(), SVM233::svm_parameter::ParseTabDelStr(), SVM289_BFS::svm_parameter::ParseTabDelStr(), SVM289_MFS::svm_parameter::ParseTabDelStr(), KKMLL::ClassAssignments::ParseToString(), KKB::KKStrParser::PeekNextToken(), KKMLL::GrayScaleImagesFVList::PopFromBack(), KKMLL::ModelSvmBase::Predict(), KKMLL::ModelUsfCasCor::Predict(), KKMLL::SVMModel::Predict(), KKMLL::FeatureVector::PredictedClassName(), KKJobManagment::KKJob::PrerequisitesToStr(), KKMLL::ConfusionMatrix2::PrintAccuracyByProbByClassHTML(), KKMLL::SizeDistribution::PrintByClassCollumns(), KKMLL::ConfusionMatrix2::PrintConfusionMatrix(), KKMLL::ConfusionMatrix2::PrintConfusionMatrixHTML(), KKMLL::ConfusionMatrix2::PrintConfusionMatrixLatexTable(), KKMLL::ConfusionMatrix2::PrintConfusionMatrixNarrow(), KKMLL::ConfusionMatrix2::PrintConfusionMatrixTabDelimited(), KKMLL::SizeDistribution::ClassTotals::PrintFormatedLine(), KKMLL::ConfusionMatrix2::PrintTrueFalsePositivesTabDelimited(), KKMLL::ModelKnn::ProbabilitiesByClass(), KKMLL::ModelSvmBase::ProbabilitiesByClass(), KKMLL::ModelUsfCasCor::ProbabilitiesByClass(), KKMLL::ModelOldSVM::ProbabilitiesByClass(), KKMLL::ModelParamDual::ProbFusionMethodToStr(), KKJobManagment::KKJob::ProcessStatusStr(), KKMLL::ClassProbList::PushOnBack(), KKMLL::BinaryClassParmsList::PushOnBack(), KKMLL::FeatureVectorList::PushOnBack(), KKMLL::ClassProbList::PushOnFront(), KKMLL::BinaryClassParmsList::PushOnFront(), KKMLL::FeatureVectorList::PushOnFront(), QuotedStr(), KKB::Raster::Raster(), KKLSC::ScannerFile::ReadHeader(), KKB::ReadImage(), KKB::ReadImagePGM(), KKB::ReadImagePPM(), KKB::ReadImagePpmField(), KKMLL::ModelParamKnn::ReadXML(), KKMLL::AttributeTypeVector::ReadXML(), KKB::VectorKKStr::ReadXML(), KKMLL::ModelParamUsfCasCor::ReadXML(), KKMLL::ModelParamDual::ReadXML(), KKMLL::NormalizationParms::ReadXML(), KKMLL::ModelKnn::ReadXML(), KKMLL::ClassProbList::ReadXML(), KKMLL::FeatureEncoder::ReadXML(), KKMLL::ModelUsfCasCor::ReadXML(), KKMLL::ModelSvmBase::ReadXML(), KKMLL::ModelParamOldSVM::ReadXML(), KKMLL::TrainingClassList::ReadXML(), SVM233::SvmModel233::ReadXML(), KKMLL::ModelDual::ReadXML(), SVM289_MFS::Svm_Model::ReadXML(), KKMLL::FileDesc::ReadXML(), KKMLL::SVMparam::ReadXML(), KKMLL::ModelOldSVM::ReadXML(), KKMLL::SVMModel::ReadXML(), KKMLL::TrainingProcess2::ReadXML(), KKB::KKStrList::ReadXML(), KKB::KKStrListIndexed::ReadXML(), KKMLL::TrainingConfiguration2::ReadXMLBaseToken(), KKMLL::ModelParam::ReadXMLModelParamToken(), KKMLL::Model::ReadXMLModelPost(), KKMLL::Model::ReadXMLModelToken(), KKMLL::GrayScaleImagesFVList::RecalcFeatureValuesFromImagesInDirTree(), KKMLL::ModelDual::ReconcilePredictions(), KKMLL::ModelDual::ReconcileProbAndVotes(), KKB::XmlFactoryManager::RegisterFactory(), KKB::XmlFactory::RegisterFactory(), KKLSC::ScannerFile::ReportTextMsg(), KKMLL::FeatureVectorList::ResetFileDesc(), KKMLL::FeatureVector::ResetNumOfFeatures(), KKMLL::FeatureVectorList::ReSyncSymbolicData(), KKMLL::ModelSvmBase::RetrieveCrossProbTable(), RightPad(), KKB::Row::Row(), KKMLL::FileDesc::SameExceptForSymbolicData(), KKB::BmpImage::Save(), KKMLL::Orderings::Save(), KKMLL::FeatureFileIO::SaveFeatureFile(), KKMLL::FeatureFileIORoberts::SaveFile(), KKMLL::FeatureFileIOC45::SaveFile(), KKB::BmpImage::SaveGrayscaleInverted4Bit(), KKB::BmpImage::SaveGrayscaleInverted8Bit(), KKB::SaveImage(), KKB::SaveImageGrayscaleInverted4Bit(), KKB::SaveImageGrayscaleInverted8Bit(), KKB::SaveImagePGM(), KKB::SaveImagePNG(), KKB::SaveImagePPM(), KKLSC::Variables::ScannerFilesDefaultDir(), KKB::XmlToken::SectionName(), KKB::XmlElement::SectionName(), KKB::Raster::SegmentImage(), KKMLL::SelectionMethodFromStr(), KKB::Configuration::SettingValueToStr(), Spaces(), Split(), KKJobManagment::KKJobManager::StatusFileProcessLine(), KKJobManagment::KKJobManager::StatusFileProcessLineJobStatusChange(), KKB::StrFormatDouble(), KKB::StrFormatInt64(), KKB::StrFromDouble(), KKB::StrFromFloat(), KKB::StrFromInt16(), KKB::StrFromInt32(), KKB::StrFromInt64(), KKB::StrFromUint16(), KKB::StrFromUint32(), KKB::StrFromUint64(), StripOutInvalidLatexCaracters(), StrReplace(), KKLSC::Variables::SubstituteInEnvironmentVariables(), KKB::KKStrParser::SubStrPart(), SubStrPart(), KKB::SupportedImageFileFormat(), KKMLL::SVMModel::SupportVectorNames(), SVM233::svm_GetSupportVectorStatistics(), SVM233::svm_parameter::svm_parameter(), SVM289_BFS::svm_train_one(), SVM289_MFS::svm_train_one(), KKMLL::TrainingConfiguration2::SVMparamREF(), KKMLL::ModelParamOldSVM::SvmParamToString(), KKMLL::SVMparam::SvmParamToString(), KKMLL::FeatureVectorList::SynchronizeSymbolicData(), KKB::ThreadStartCallBack(), KKB::KKThread::ThreadStatusToStr(), KKB::TimeType::TimeType(), KKMLL::ModelParamSvmBase::ToCmdLineStr(), KKMLL::ModelParamUsfCasCor::ToCmdLineStr(), KKMLL::ModelParamDual::ToCmdLineStr(), SVM233::svm_parameter::ToCmdLineStr(), KKMLL::ModelParam::ToCmdLineStr(), SVM289_BFS::svm_parameter::ToCmdLineStr(), SVM289_MFS::svm_parameter::ToCmdLineStr(), KKMLL::ModelParamOldSVM::ToCmdLineStr(), KKMLL::MLClassList::ToCommaDelimitedQuotedStr(), KKMLL::MLClassList::ToCommaDelimitedStr(), KKMLL::MLClassIndexList::ToCommaDelString(), KKB::PointList::ToDelStr(), ToKKStrPtr(), ToLatitude(), ToLongitude(), ToLower(), ToPercentage(), KKJobManagment::KKJob::ToStatusStr(), KKJobManagment::KKJobManager::ToStatusStr(), KKB::PixelValue::ToStr(), KKMLL::ClassAssignments::ToString(), KKMLL::MLClass::ToString(), KKMLL::FeatureNumList::ToString(), KKMLL::SVMparam::ToString(), KKB::XmlTag::ToString(), KKMLL::MLClassList::ToString(), KKMLL::MLClassList::ToTabDelimitedStr(), KKLSC::ScannerFileEntry::ToTabDelStr(), KKLSC::StartStopPoint::ToTabDelStr(), SVM233::svm_parameter::ToTabDelStr(), SVM289_BFS::svm_parameter::ToTabDelStr(), SVM289_MFS::svm_parameter::ToTabDelStr(), KKMLL::BinaryClassParms::ToTabDelString(), KKB::KKStrListIndexed::ToTabDelString(), ToUpper(), ToVectorInt32(), ToXmlStr(), KKMLL::ModelUsfCasCor::TrainModel(), KKMLL::ModelSvmBase::TrainModel(), KKMLL::ModelDual::TrainModel(), KKMLL::ModelOldSVM::TrainModel(), KKMLL::Model::TrainModel(), KKB::XmlToken::VarName(), KKB::XmlElement::VarName(), Wide(), KKLSC::ScannerFile::WriteHeader(), KKLSC::ScannerFile::WriteInstrumentDataWord(), KKMLL::TrainingClassList::WriteXML(), SVM289_MFS::Svm_Model::WriteXML(), KKMLL::SVMModel::WriteXML(), KKB::XmlElementArrayFloat2DVarying::WriteXML(), KKB::XmlElementKeyValuePairs::XmlElementKeyValuePairs(), KKMLL::XmlElementMLClassNameList::XmlElementMLClassNameList(), KKB::XmlTag::XmlTag(), KKB::DateType::YY_MM_DD(), KKB::DateType::YYYY_MM_DD(), KKB::DateType::YYYY_MMM_DD(), and KKB::DateType::YYYYMMDD().
| bool KKStr::Contains | ( | const KKStr & | value | ) |
Definition at line 1103 of file KKStr.cpp.
References Empty(), and StrInStr().
| bool KKStr::Contains | ( | const char * | value | ) |
Definition at line 1112 of file KKStr.cpp.
References Find().
| kkint32 KKStr::CountInstancesOf | ( | char | ch | ) | const |
|
inline |
Definition at line 587 of file KKStr.h.
References Str().
| KKStr KKStr::DecodeQuotedStr | ( | ) | const |
Trees this KKSr instance as a QuotedStr; decodes escape sequences such as '\', '', '
', '', and '\0' into original characters.
Definition at line 3243 of file KKStr.cpp.
References Append(), Concat(), EmptyStr(), and KKStr().
|
inline |
Definition at line 241 of file KKStr.h.
Referenced by KKMLL::MLClassList::AddMLClass(), KKMLL::DuplicateImages::AddSingleExample(), KKLSC::ScannerFile::AddStartStopEntryToIndexFile(), KKB::CmdLineExpander::CmdLineExpander(), Contains(), KKMLL::TrainingConfiguration2::CreateFromDirectoryStructure(), KKMLL::TrainingConfiguration2::CreateFromFeatureVectorList(), KKMLL::BinaryClassParms::CreateFromTabDelStr(), KKMLL::ClassProbList::CreateFromXMLStream(), KKMLL::Orderings::CreateOrderingsObjFromFileIfAvaliable(), KKB::DateTime::DateTime(), KKMLL::TrainingClass::ExpandedDirectory(), KKMLL::FeatureNumList::ExtractFeatureNumsFromStr(), KKMLL::MLClassList::ExtractThreeTitleLines(), KKMLL::FeatureFileIO::FeatureDataReSink(), KKMLL::FeatureFileIO::FileFormatsReadAndWriteOptionsStr(), KKMLL::FeatureFileIO::FileFormatsReadOptionsStr(), KKMLL::FeatureFileIO::FileFormatsWrittenOptionsStr(), GetClassNameByHierarchyLevel(), KKMLL::TrainingConfiguration2::GetEffectiveConfigFileName(), KKMLL::FeatureFileIOC45::GetFileDesc(), KKMLL::FeatureFileIOUCI::GetFileDesc(), KKB::Tokenizer::GetNextTokens(), KKB::XmlTokenizer::GetNextTokens(), KKLSC::Variables::HomeDir(), KKB::Application::InitalizeApplication(), KKMLL::FeatureNumList::Load(), KKMLL::FeatureFileIOUCI::LoadFile(), KKMLL::FeatureFileIOC45::LoadFile(), KKMLL::FeatureFileIO::LoadInSubDirectoryTree(), KKMLL::TrainingConfiguration2::LoadOtherClasssExamples(), KKMLL::Orderings::Orderings(), KKB::osCreateDirectoryPath(), KKB::osCreateUniqueFileName(), KKB::osGetDirNameFromPath(), KKB::osGetListOfFilesInDirectoryTree(), KKB::osLookForFile(), osParseSearchSpec(), KKB::osValidFileNameErrors(), Parse(), KKMLL::ModelParam::ParseCmdLine(), KKMLL::ModelParamOldSVM::ParseCmdLine(), KKLSC::ScannerFileEntry::ParseTabDelStr(), SVM233::svm_parameter::ParseTabDelStr(), SVM289_BFS::svm_parameter::ParseTabDelStr(), SVM289_MFS::svm_parameter::ParseTabDelStr(), KKMLL::ClassAssignments::ParseToString(), KKMLL::MLClassList::PushOnBack(), KKMLL::MLClassList::PushOnFront(), KKMLL::ClassProbList::ReadXML(), KKMLL::TrainingConfiguration2::ReadXMLPost(), KKMLL::ModelDual::ReconcilePredictions(), KKMLL::Orderings::Save(), Split(), KKJobManagment::KKJobManager::StatusFileProcessLine(), SVM233::svm_parameter::svm_parameter(), KKMLL::ModelParamDual::ToCmdLineStr(), KKMLL::MLClassIndexList::ToCommaDelString(), KKMLL::FeatureNumList::ToString(), KKB::KKStrListIndexed::ToTabDelString(), ToVectorInt32(), KKB::RunLog::WriteLine(), KKMLL::ModelParamKnn::WriteXML(), KKMLL::AttributeTypeVector::WriteXML(), KKB::VectorKKStr::WriteXML(), KKMLL::ModelParamSvmBase::WriteXML(), KKMLL::ModelParamUsfCasCor::WriteXML(), KKMLL::ModelParamDual::WriteXML(), KKMLL::ModelKnn::WriteXML(), KKMLL::NormalizationParms::WriteXML(), KKMLL::ClassProbList::WriteXML(), KKMLL::FeatureEncoder::WriteXML(), KKMLL::ModelUsfCasCor::WriteXML(), KKB::BitString::WriteXML(), KKMLL::ModelSvmBase::WriteXML(), KKMLL::Attribute::WriteXML(), KKMLL::ModelParamOldSVM::WriteXML(), KKMLL::TrainingClassList::WriteXML(), KKMLL::MLClass::WriteXML(), KKMLL::AttributeList::WriteXML(), SVM233::SvmModel233::WriteXML(), KKMLL::ModelDual::WriteXML(), SVM289_MFS::Svm_Model::WriteXML(), KKMLL::FeatureNumList::WriteXML(), KKMLL::SVMparam::WriteXML(), KKMLL::FileDesc::WriteXML(), KKMLL::ModelOldSVM::WriteXML(), KKMLL::SVMModel::WriteXML(), KKMLL::TrainingProcess2::WriteXML(), KKMLL::TrainingConfiguration2::WriteXML(), KKMLL::MLClassList::WriteXML(), KKB::XmlElementBool::WriteXML(), KKMLL::MLClassIndexList::WriteXML(), KKB::XmlElementDateTime::WriteXML(), WriteXML(), KKMLL::XmlElementMLClassNameList::WriteXML(), KKB::XmlElementKeyValuePairs::WriteXML(), KKB::XmlElementArrayFloat2DVarying::WriteXML(), KKB::KKStrList::WriteXML(), KKB::KKStrListIndexed::WriteXML(), KKMLL::XmlElementMLClass::XmlElementMLClass(), and KKMLL::XmlElementMLClassNameList::XmlElementMLClassNameList().
|
static |
Static method that returns an Empty String.
Definition at line 3453 of file KKStr.cpp.
References Concat().
Referenced by KKB::XmlAttributeList::AttributeValueKKStr(), DecodeQuotedStr(), KKMLL::TrainingConfiguration2::DirectoryPathForClass(), ExtractQuotedStr(), KKMLL::FeatureVectorProducer::FeatureName(), KKB::KKStrParser::GetNextToken(), KKMLL::Attribute::GetNominalValue(), KKB::KKStrParser::GetRestOfLine(), KKB::KKStrParser::GetRestOfStr(), KKLSC::ScannerFile::GetValue(), KKMLL::FeatureVector::MLClassName(), KKMLL::ClassStatistic::Name(), KKB::XmlElement::NameTagStr(), KKB::osGetParentDirectoryOfDirPath(), KKB::osGetParentDirPath(), KKMLL::MLClass::ParentName(), KKB::KKStrParser::PeekNextToken(), KKMLL::FeatureVector::PredictedClassName(), KKMLL::ModelParamDual::ProbFusionMethodToStr(), KKB::ReadImagePpmField(), KKB::XmlToken::SectionName(), KKB::XmlElement::SectionName(), KKB::Configuration::SettingValueToStr(), KKB::KKStrParser::SubStrPart(), KKB::KKThread::ThreadStatusToStr(), ToXmlStr(), KKB::XmlToken::VarName(), and KKB::XmlElement::VarName().
| bool KKStr::EndsWith | ( | const KKStr & | value | ) |
| bool KKStr::EndsWith | ( | const char * | value | ) |
| bool KKStr::EndsWith | ( | const KKStr & | value, |
| bool | ignoreCase | ||
| ) |
Definition at line 1204 of file KKStr.cpp.
References Len(), StrEqual(), and StrEqualNoCase().
Referenced by EndsWith().
| bool KKStr::EndsWith | ( | const char * | value, |
| bool | ignoreCase | ||
| ) |
Definition at line 1223 of file KKStr.cpp.
References StrEqual(), and StrEqualNoCase().
Referenced by EndsWith().
| char KKStr::EnterStr | ( | ) |
| bool KKStr::EqualIgnoreCase | ( | const KKStr & | s2 | ) | const |
Definition at line 1250 of file KKStr.cpp.
References CompareIgnoreCase().
Referenced by KKMLL::TrainingClassList::LocateByDirectory(), KKMLL::TrainingConfiguration2List::LookUp(), KKMLL::Classifier2List::LookUpByName(), KKB::Configuration::SettingList::LookUpLineNum(), KKLSC::ScannerFile::ScannerFileFormatFromStr(), and KKLSC::StartStopPoint::StartStopTypeFromStr().
| bool KKStr::EqualIgnoreCase | ( | const KKStrConstPtr | s2 | ) | const |
Definition at line 1244 of file KKStr.cpp.
References EqualIgnoreCase(), and Str().
Referenced by KKB::Configuration::SettingList::LookUp(), and KKB::Configuration::ConfSectionList::LookUp().
| bool KKStr::EqualIgnoreCase | ( | const char * | s2 | ) | const |
Definition at line 1257 of file KKStr.cpp.
References StrCompareIgnoreCase().
Referenced by KKMLL::AttributeTypeFromStr(), EqualIgnoreCase(), KKMLL::FeatureNumList::ExtractFeatureNumsFromStr(), KKLSC::ScannerFile::ExtractHeaderField(), KKLSC::ScannerFile::GuessFormatOfFile(), SVM289_BFS::Kernel_Type_FromStr(), SVM289_MFS::Kernel_Type_FromStr(), KKMLL::FeatureFileIOC45::LoadFile(), KKLSC::ScannerFile::LoadIndexFile(), KKMLL::ModelParam::ModelParamTypeFromStr(), KKMLL::Model::ModelTypeFromStr(), KKB::MorphOp::OperationTypeFromStr(), KKMLL::ModelParam::ParseCmdLine(), KKLSC::ScannerFileEntry::ParseTabDelStr(), SVM289_BFS::svm_parameter::ParseTabDelStr(), SVM289_MFS::svm_parameter::ParseTabDelStr(), KKMLL::FeatureNumList::ParseToString(), KKMLL::ModelParamDual::ProbFusionMethodFromStr(), SVM289_BFS::svm_parameter::ProcessSvmParameter(), SVM289_MFS::svm_parameter::ProcessSvmParameter(), KKMLL::ModelParamKnn::ReadXML(), KKMLL::AttributeTypeVector::ReadXML(), KKMLL::ModelParamSvmBase::ReadXML(), KKMLL::ModelParamUsfCasCor::ReadXML(), KKMLL::ModelParamDual::ReadXML(), KKMLL::TrainingClass::ReadXML(), KKMLL::NormalizationParms::ReadXML(), KKMLL::FeatureEncoder::ReadXML(), KKMLL::ModelParamOldSVM::ReadXML(), SVM233::SvmModel233::ReadXML(), SVM289_MFS::Svm_Model::ReadXML(), KKMLL::FileDesc::ReadXML(), KKMLL::SVMparam::ReadXML(), KKMLL::ModelOldSVM::ReadXML(), KKMLL::SVMModel::ReadXML(), KKMLL::TrainingProcess2::ReadXML(), KKMLL::TrainingConfiguration2::ReadXMLBaseToken(), KKMLL::ModelParam::ReadXMLModelParamToken(), KKMLL::Model::ReadXMLModelToken(), KKB::SaveImageGrayscaleInverted4Bit(), KKB::SaveImageGrayscaleInverted8Bit(), KKJobManagment::KKJobManager::StatusFileProcessLine(), KKLSC::Variables::SubstituteInEnvironmentVariables(), SVM289_BFS::SVM_Type_FromStr(), SVM289_MFS::SVM_Type_FromStr(), and KKMLL::XmlElementMLClass::XmlElementMLClass().
| char KKStr::ExtractChar | ( | ) |
| char KKStr::ExtractLastChar | ( | ) |
Removes the last character from the string and returns it to the caller.
If the String is already empty it will return 0.summary> Extracts the next string token; if the string starts with a quote(") will extract until the terminating quote. Special control characters that are encoded with back-slashes such as carriage-return, line-feed, tab, quotes, etc will be decoded. It is the inverse of the QuotedStr or ToQuotedStr methods. /summary> param nqame='delChars'> List of acceptable delimiter characters.
param name='decodeEscapeCharacters'> Indicates if escape sequences should be decoded back to their original code.
returns>Token String
| KKStr KKStr::ExtractQuotedStr | ( | const char * | delChars, |
| bool | decodeEscapeCharacters | ||
| ) |
summary> Extract first Token from the string.
remarks> Removes first Token from string and returns it skipping over any leading delimiters. Tokens will be terminated by end of string or the first occurrence of a delimiter character. If no more tokens left will return a Empty KKStr. Note if you do not want to skip over leading delimiter characters the use 'ExtractToken2'. /remarks> param name='delStr'> List of delimiting characters.
returns> Extracted Token.
seealso cref='ExtractToken2'/>
Definition at line 3282 of file KKStr.cpp.
References Append(), Concat(), EmptyStr(), and KKStr().
Referenced by KKB::CmdLineExpander::CmdLineExpander(), and KKMLL::BinaryClassParms::CreateFromTabDelStr().
| KKStr KKStr::ExtractToken | ( | const char * | delStr = "\n\t\r " | ) |
Definition at line 2969 of file KKStr.cpp.
References Concat(), and operator=().
Referenced by KKMLL::FeatureFileIODstWeb::AttrDescLine::AttrDescLine(), KKB::DateType::DateType(), KKMLL::FeatureNumList::ExtractFeatureNumsFromStr(), KKMLL::MLClassList::ExtractThreeTitleLines(), GetClassNameByHierarchyLevel(), KKMLL::FeatureFileIOUCI::GetFileDesc(), KKMLL::FeatureFileIOSparse::GetFileDesc(), KKMLL::FeatureFileIODstWeb::LoadFile(), KKMLL::FeatureFileIOUCI::LoadFile(), KKB::osCreateDirectoryPath(), KKMLL::ModelParam::ParseCmdLine(), KKMLL::ModelParamOldSVM::ParseCmdLine(), KKMLL::ClassAssignments::ParseToString(), SVM233::svm_parameter::svm_parameter(), and KKB::TimeType::TimeType().
| KKStr KKStr::ExtractToken2 | ( | const char * | delStr = "\n\t\r " | ) |
Extract first Token from the string.
Removes first Token from string and returns it. Unlike 'ExtractToken' it will not skip over leading delimiters. If the first character is a delimiter it will return a empty string. Tokens will be terminated by end of string or the first occurrence of a delimiter character. If no more tokens left will return a Empty KKStr.
| [in] | delStr | List of delimiting characters. |
Definition at line 3026 of file KKStr.cpp.
References Concat(), KKStr(), and operator=().
Referenced by KKMLL::ClassProbList::CreateFromXMLStream(), ExtractTokenBool(), ExtractTokenDouble(), ExtractTokenInt(), ExtractTokenUint(), ExtractTokenUint64(), KKLSC::ScannerFile::GuessFormatOfFile(), KKLSC::ScannerFile::LoadIndexFile(), Parse(), KKLSC::ScannerFileEntry::ParseTabDelStr(), KKLSC::StartStopPoint::ParseTabDelStr(), SVM233::svm_parameter::ParseTabDelStr(), SVM289_BFS::svm_parameter::ParseTabDelStr(), SVM289_MFS::svm_parameter::ParseTabDelStr(), KKLSC::ScannerFile::ReadHeader(), KKMLL::ModelDual::ReconcilePredictions(), KKLSC::ScannerFile::ReportTextMsg(), Split(), KKJobManagment::KKJobManager::StatusFileProcessLine(), and KKJobManagment::KKJobManager::StatusFileProcessLineJobStatusChange().
| bool KKStr::ExtractTokenBool | ( | const char * | delStr | ) |
Extract the next token from the string assuming that it is a logical True/False value.
This function calls 'ExtractToken2' and then returns true if the string that it extracted is equal to "Y", "Yes", "True", "T", or "1" otherwise false.
| [in] | delStr | List of delimiter characters. |
Definition at line 3165 of file KKStr.cpp.
References Concat(), ExtractToken2(), operator==(), and Upper().
Referenced by KKMLL::ModelParam::ParseCmdLine().
| double KKStr::ExtractTokenDouble | ( | const char * | delStr | ) |
Definition at line 3180 of file KKStr.cpp.
References Concat(), ExtractToken2(), and Len().
Referenced by KKMLL::ClassProbList::CreateFromXMLStream(), KKLSC::ScannerFileEntry::ParseTabDelStr(), SVM233::svm_parameter::ParseTabDelStr(), SVM289_BFS::svm_parameter::ParseTabDelStr(), SVM289_MFS::svm_parameter::ParseTabDelStr(), and KKJobManagment::KKJobManager::StatusFileProcessLine().
| kkint32 KKStr::ExtractTokenInt | ( | const char * | delStr | ) |
Definition at line 3129 of file KKStr.cpp.
References Concat(), and ExtractToken2().
Referenced by KKMLL::FeatureNumList::ExtractFeatureNumsFromStr(), KKB::PointList::FromDelStr(), KKLSC::ScannerFile::LoadIndexFile(), KKLSC::StartStopPoint::ParseTabDelStr(), SVM233::svm_parameter::ParseTabDelStr(), SVM289_BFS::svm_parameter::ParseTabDelStr(), SVM289_MFS::svm_parameter::ParseTabDelStr(), KKMLL::ClassAssignments::ParseToString(), KKB::ReadImagePGM(), KKLSC::ScannerFile::ReportTextMsg(), KKJobManagment::KKJobManager::StatusFileProcessLine(), and KKJobManagment::KKJobManager::StatusFileProcessLineJobStatusChange().
| kkuint32 KKStr::ExtractTokenUint | ( | const char * | delStr | ) |
Definition at line 3141 of file KKStr.cpp.
References Concat(), and ExtractToken2().
Referenced by KKLSC::ScannerFile::LoadIndexFile(), KKLSC::ScannerFileEntry::ParseTabDelStr(), and KKLSC::ScannerFile::ReportTextMsg().
| KKB::kkuint64 KKStr::ExtractTokenUint64 | ( | const char * | delStr | ) |
Definition at line 3153 of file KKStr.cpp.
References Concat(), ExtractToken2(), and ToUint64().
Referenced by KKLSC::ScannerFile::LoadIndexFile().
Will return the position where the 1st instance of 'str' after 'pos' occurs or -1 if not found.
param name='str'> String that you are searching for.
param name='pos'> The starting position to start the search from.
returns> The index where 'str' first occurs at or after 'pos' otherwise -1 if not found.
Definition at line 3931 of file KKStr.cpp.
References Len(), SearchStr(), and Str().
Definition at line 3938 of file KKStr.cpp.
References SearchStr().
Definition at line 3945 of file KKStr.cpp.
Referenced by Contains().
| char KKStr::FirstChar | ( | ) | const |
Returns the first character in the string; if the string is empty returns 0.
Definition at line 1970 of file KKStr.cpp.
Referenced by KKMLL::FeatureFileIODstWeb::AttrDescLine::AttrDescLine(), KKMLL::TrainingClass::ExpandedDirectory(), KKB::PointList::FromDelStr(), KKMLL::FeatureFileIODstWeb::GetFileDesc(), KKB::XmlStream::GetNextContent(), KKB::XmlStream::GetNextToken(), KKMLL::FeatureFileIODstWeb::LoadFile(), KKB::osCreateDirectoryPath(), KKMLL::ModelParam::ParseCmdLine(), ToLatitude(), and ToLongitude().
| void KKStr::FreeUpUnUsedSpace | ( | ) |
Alloocated space s significanly larger than length of string will reallocate to free up unused space.
Definition at line 1980 of file KKStr.cpp.
References Concat(), KKB::KKException::KKException(), and KKStr().
| KKStr KKStr::GetNextToken2 | ( | const char * | delStr = "\n\t\r " | ) | const |
Retrieves the first token in the string without removing any characters.
Similar to 'ExtractToken2' except it does not remove characters from the string.
Definition at line 3089 of file KKStr.cpp.
References SubStrPart().
| kkint32 KKStr::InstancesOfChar | ( | char | ch | ) | const |
Returns the number of instances of 'ch' in the string.
Definition at line 2041 of file KKStr.cpp.
Referenced by KKMLL::MLClass::NumHierarchialLevels().
| char KKStr::LastChar | ( | ) | const |
Returns the last character in the string but if the string is empty returns 0.
Definition at line 2007 of file KKStr.cpp.
Referenced by KKMLL::FeatureFileIODstWeb::AttrDescLine::AttrDescLine(), KKMLL::FeatureFileIOC45::GetFileDesc(), KKMLL::FeatureFileIODstWeb::LoadFile(), KKB::osAddLastSlash(), KKB::osAddSlash(), KKB::osCreateDirectoryPath(), KKB::osGetDirNameFromPath(), KKB::osGetFileNamePartOfFile(), KKB::osGetListOfDirectories(), KKB::osGetParentDirectoryOfDirPath(), KKB::osGetParentDirPath(), KKB::osGetRootNameOfDirectory(), KKB::osMoveFileBetweenDirectories(), KKB::osParseFileSpec(), and ToPercentage().
pads the string with enough 'ch' characters on the left side until the string is as long as 'width' characters.
if 'width' is less than the current length of the string then the string will have characters removed the beginning until its 'len' equals 'width'.
Definition at line 2303 of file KKStr.cpp.
References Concat(), KKB::KKException::KKException(), and KKStr().
Referenced by KKMLL::MLClassList::ExtractThreeTitleLines(), KKMLL::ConfusionMatrix2::PrintConfusionMatrixNarrow(), KKMLL::SizeDistribution::ClassTotals::PrintFormatedLine(), and Wide().
|
inline |
Returns the number of characters in the string.
Definition at line 366 of file KKStr.h.
Referenced by KKB::KKThread::AddMsg(), KKB::TokenBufferStr::EndOfFile(), EndsWith(), ExtractAttribute(), ExtractTokenDouble(), Find(), KKB::PointList::FromDelStr(), KKB::BitString::FromHexStr(), KKMLL::MLClass::GetClassNameFromDirName(), KKMLL::FeatureFileIOC45::GetFileDesc(), KKB::TokenBufferStr::GetNextChar(), KKB::KKStrParser::KKStrParser(), LocateLastOccurrence(), KKB::operator+(), osFileNameMatchesSearchFields(), KKB::osGetDriveLetter(), osLocateEnvStrStart(), KKB::osReadNextLine(), KKB::osReadRestOfLine(), KKB::osSplitDirectoryPathIntoParts(), KKB::osSubstituteInEnvironmentVariables(), KKB::osValidFileNameErrors(), KKMLL::ModelParam::ParseCmdLine(), KKMLL::ModelParamOldSVM::ParseCmdLine(), KKB::TokenBufferStr::PeekNextChar(), QuotedStr(), KKMLL::ModelDual::ReconcilePredictions(), StripOutAnyComments(), StripOutInvalidLatexCaracters(), SVM233::svm_parameter::svm_parameter(), KKB::TimeType::TimeType(), ToPercentage(), ToXmlStr(), Wide(), KKLSC::ScannerFile::WriteInstrumentDataWord(), and KKB::XmlContent::WriteXml().
| kkint32 KKStr::LocateCharacter | ( | char | ch | ) | const |
Returns index of 1st occurrence of 'ch' otherwise -1.
Definition at line 2021 of file KKStr.cpp.
Referenced by KKMLL::FeatureNumList::ExtractFeatureNumsFromStr(), KKMLL::MLClassList::ExtractTwoTitleLines(), KKMLL::FeatureFileIODstWeb::GetFileDesc(), KKB::osGetFileNamePartOfFile(), KKB::osGetListOfDirectories(), KKB::osLocateFirstSlashChar(), KKB::osParseFileSpec(), KKB::osSubstituteInEnvironmentVariables(), KKLSC::Variables::SubstituteInEnvironmentVariables(), ToLatitude(), ToLongitude(), and ToVectorInt32().
| kkint32 KKStr::LocateLastOccurrence | ( | char | ch | ) | const |
Returns index of last occurrence of 'ch' otherwise -1.
Returns the position of the last occurrence of the character 'ch'.
A return of -1 indicates that there is no occurrence of 'ch' in the string.
Definition at line 2118 of file KKStr.cpp.
Referenced by KKMLL::DuplicateImage::ExampleWithSmallestScanLine(), KKMLL::MLClass::GetClassNameFromDirName(), KKMLL::FeatureFileIOC45::LoadFeatureFile(), KKB::osGetParentDirectoryOfDirPath(), KKB::osGetParentDirPath(), KKB::osGetPathPartOfFile(), KKB::osGetRootName(), KKB::osGetRootNameOfDirectory(), KKB::osGetRootNameWithExtension(), KKB::osLocateLastSlashChar(), KKB::osParseFileName(), KKB::osParseFileSpec(), and KKB::osRemoveExtension().
Returns index of last occurrence of 's' otherwise -1.
Returns the position of the last occurrence of the string 's'.
A return of -1 indicates that there is no occurrence of 's' in the string.
Definition at line 2151 of file KKStr.cpp.
References Len().
Returns index of 1st occurrence of 'searchStr' otherwise -1.
returns the position of the 1st occurrence of the string 'searchStr'.
A return of -1 indicates that there is no occurrence of 'searchStr' in the string.
Definition at line 2091 of file KKStr.cpp.
References MemCompare().
| void KKStr::LopOff | ( | kkint32 | lastCharPos | ) |
Trims off all characters after the 'lastCharPos' index; to make an empty string you would have to specify -1.
Remove characters from the end of the string.
Removes characters from end of string starting at position 'lastCharPos'. If 'lastCharPos' is greater than length of string will do nothing. If 'lastCharPos' is less than or equal to '0' will delete all characters from string.
| [in] | lastCharPos | Will remove all characters starting at 'lastCharPos' from end of string. |
Definition at line 2866 of file KKStr.cpp.
| void KKStr::Lower | ( | ) |
Returns a string that will not be longer that 'maxLen'; any chracters beyond that length will be chopped off.
Definition at line 2499 of file KKStr.cpp.
References SubStrPart().
| kkuint32 KKStr::MaxLenSupported | ( | ) | const |
Returns the maximum String Length that this string can support.
Definition at line 2510 of file KKStr.cpp.
Referenced by KKB::osReadRestOfLine(), and RightPad().
|
static |
| kkint32 KKStr::MemoryConsumedEstimated | ( | ) | const |
Definition at line 766 of file KKStr.cpp.
Referenced by KKB::KKStrListIndexed::Add(), KKB::MsgQueue::AddMsg(), KKB::MsgQueue::AddMsgs(), KKB::KKStrListIndexed::Delete(), KKLSC::ScannerFileEntry::MemoryConsumedEstimated(), KKB::Configuration::Setting::MemoryConsumedEstimated(), KKB::KKThread::MemoryConsumedEstimated(), KKMLL::ModelParam::MemoryConsumedEstimated(), KKMLL::FeatureVector::MemoryConsumedEstimated(), KKMLL::Attribute::MemoryConsumedEstimated(), KKB::GoalKeeperSimple::MemoryConsumedEstimated(), KKB::GoalKeeper::MemoryConsumedEstimated(), KKMLL::SVMparam::MemoryConsumedEstimated(), KKMLL::Model::MemoryConsumedEstimated(), KKMLL::TrainingProcess2::MemoryConsumedEstimated(), KKMLL::FeatureVectorList::MemoryConsumedEstimated(), and KKB::Raster::MemoryConsumedEstimated().
| bool KKStr::operator!= | ( | const KKStr & | right | ) | const |
Definition at line 1558 of file KKStr.cpp.
References Compare().
Referenced by KKMLL::FeatureVectorList::ExtractDuplicatesByRootImageFileName(), KKB::Tokenizer::GetNextTokens(), KKB::XmlTokenizer::GetNextTokens(), KKMLL::FileDesc::MergeSymbolicFields(), KKMLL::Attribute::operator==(), and KKMLL::FileDesc::SameExceptForSymbolicData().
| bool KKStr::operator!= | ( | KKStrConstPtr | right | ) | const |
| bool KKStr::operator!= | ( | const char * | rtStr | ) | const |
Definition at line 1596 of file KKStr.cpp.
References StrEqual().
Referenced by KKMLL::FeatureFileIODstWeb::GetFileDesc(), KKMLL::FeatureFileIOUCI::GetFileDesc(), and KKMLL::FeatureFileIOUCI::LoadFile().
| KKStr KKStr::operator+ | ( | const char * | right | ) | const |
Definition at line 3986 of file KKStr.cpp.
References Append(), Concat(), and KKStr().
Referenced by KKB::BmpImage::BlueRow(), KKB::Application::BuildDate(), KKMLL::ClassificationBiasMatrix::ClassificationBiasMatrix(), KKLSC::Variables::ConfigurationDir(), KKMLL::Model::CreateAModel(), KKMLL::FeatureEncoder2::CreateEncodedFileDesc(), KKMLL::FeatureEncoder::CreateEncodedFileDesc(), KKMLL::TrainingConfiguration2::CreateFromDirectoryStructure(), KKMLL::Orderings::CreateOrderingsObjFromFileIfAvaliable(), KKB::DateTime::DateTime(), KKMLL::ModelSvmBase::Description(), KKMLL::ModelOldSVM::Description(), KKMLL::ModelDual::Description(), KKMLL::Model::Description(), KKB::GoalKeeperSimple::EndBlock(), KKB::GoalKeeper::EndBlock(), KKB::Raster::ExtractChannel(), KKMLL::FeatureFileIO::FeatureDataReSink(), KKMLL::FeatureEncoder::FeatureEncoder(), KKMLL::TrainingConfiguration2::GetEffectiveConfigFileName(), KKB::TimeType::HH_MM_SS(), KKB::DateTime::HH_MM_SS(), KKB::BmpImage::ImageRow(), KKStr(), KKMLL::TrainingProcess2::LoadExistingTrainingProcess(), KKMLL::FeatureFileIOC45::LoadFeatureFile(), KKMLL::FeatureFileIODstWeb::LoadFile(), KKMLL::FeatureFileIOColumn::LoadFile(), KKMLL::FeatureFileIOUCI::LoadFile(), KKMLL::FeatureFileIOC45::LoadFile(), KKLSC::ScannerFile::LoadIndexFile(), KKMLL::FeatureFileIO::LoadInSubDirectoryTree(), KKMLL::TrainingConfiguration2::LoadOtherClasssExamples(), KKLSC::ScannerFile::Open(), KKB::operator<<(), KKMLL::Orderings::Orderings(), KKB::osCreateUniqueFileName(), KKB::osGetDirNameFromPath(), KKB::osGetListOfFilesInDirectoryTree(), KKB::osSubstituteInEnvironmentVariables(), KKMLL::ConfusionMatrix2::PrintAccuracyByProbByClassHTML(), KKMLL::ClassProbList::PushOnBack(), KKMLL::ClassProbList::PushOnFront(), KKB::BmpImage::RedRow(), RightPad(), KKB::BmpImage::Save(), KKMLL::FeatureFileIORoberts::SaveFile(), KKB::BmpImage::SaveGrayscaleInverted4Bit(), KKB::BmpImage::SaveGrayscaleInverted8Bit(), KKB::SaveImage(), KKB::SaveImageGrayscaleInverted4Bit(), KKB::SaveImageGrayscaleInverted8Bit(), KKB::SaveImagePNG(), KKB::SaveImagePPM(), KKLSC::ScannerFile::SaveIndexFile(), KKMLL::TrainingProcess2::SaveTrainingProcess(), KKLSC::Variables::ScannerFilesDefaultDir(), KKB::Raster::SegmentImage(), StrReplace(), KKMLL::KKMLVariables::TempDir(), KKMLL::ModelParamKnn::ToCmdLineStr(), KKMLL::ModelParamSvmBase::ToCmdLineStr(), KKB::PixelValue::ToStr(), KKB::tqli(), KKMLL::KKMLVariables::TrainingLibrariesDir(), KKMLL::KKMLVariables::TrainingModelsDir(), KKMLL::ModelSvmBase::TrainModel(), KKMLL::ModelDual::TrainModel(), KKB::Tred2(), and KKB::DateTime::YYYY_MM_DD_HH_MM_SS().
Definition at line 3998 of file KKStr.cpp.
References Append(), Concat(), and KKStr().
Referenced by KKB::BmpImage::BlueRow(), KKB::Application::BuildDate(), KKMLL::FeatureEncoder2::CreateEncodedFileDesc(), KKMLL::FeatureEncoder::CreateEncodedFileDesc(), KKMLL::TrainingConfiguration2::CreateFromDirectoryStructure(), KKB::DateTime::DateTime(), KKMLL::ModelDual::Description(), KKMLL::Model::Description(), KKMLL::TrainingClass::ExpandedDirectory(), KKMLL::FeatureFileIO::FeatureDataReSink(), KKMLL::FeatureEncoder::FeatureEncoder(), KKMLL::TrainingConfiguration2::GetEffectiveConfigFileName(), KKB::TimeType::HH_MM_SS(), KKB::DateTime::HH_MM_SS(), KKB::TimeType::HHMMSS(), KKB::BmpImage::ImageRow(), KKMLL::FeatureFileIOColumn::LoadFile(), KKMLL::FeatureFileIOUCI::LoadFile(), KKMLL::FeatureFileIOC45::LoadFile(), KKMLL::FeatureFileIO::LoadInSubDirectoryTree(), KKMLL::TrainingConfiguration2::LoadOtherClasssExamples(), KKB::operator+(), KKB::operator<<(), KKB::osCreateUniqueFileName(), KKB::osGetDirNameFromPath(), KKB::osGetListOfFilesInDirectoryTree(), KKB::osLookForFile(), KKB::osSubstituteInEnvironmentVariables(), KKB::BmpImage::RedRow(), KKB::Raster::SegmentImage(), KKLSC::Variables::SubstituteInEnvironmentVariables(), KKMLL::ModelParamKnn::ToCmdLineStr(), KKMLL::ModelParamSvmBase::ToCmdLineStr(), KKB::PixelValue::ToStr(), KKB::DateTime::YYYY_MM_DD_HH_MM_SS(), and KKB::DateTime::YYYYMMDDHHMMSS().
Definition at line 4010 of file KKStr.cpp.
References Append(), Concat(), KKStr(), and KKB::SPRINTF().
Definition at line 4022 of file KKStr.cpp.
References Append(), Concat(), KKStr(), and KKB::SPRINTF().
Definition at line 4036 of file KKStr.cpp.
References Append(), Concat(), KKStr(), and KKB::SPRINTF().
Referenced by KKB::GoalKeeperSimple::EndBlock(), and KKB::GoalKeeper::EndBlock().
Definition at line 4050 of file KKStr.cpp.
References Append(), Concat(), KKStr(), and KKB::SPRINTF().
Definition at line 4064 of file KKStr.cpp.
References Append(), Concat(), KKStr(), and KKB::SPRINTF().
Definition at line 4078 of file KKStr.cpp.
References Append(), Concat(), KKStr(), and KKB::SPRINTF().
| KKStr KKStr::operator+ | ( | float | right | ) | const |
Definition at line 4092 of file KKStr.cpp.
References Append(), Concat(), KKStr(), and KKB::SPRINTF().
| KKStr KKStr::operator+ | ( | double | right | ) | const |
Definition at line 4107 of file KKStr.cpp.
References Append(), Concat(), KKStr(), and KKB::SPRINTF().
|
inline |
Definition at line 682 of file KKStr.h.
Referenced by KKMLL::ModelDual::ReconcilePredictions().
|
inline |
|
inline |
| bool KKStr::operator< | ( | const KKStr & | right | ) | const |
Definition at line 1635 of file KKStr.cpp.
References Compare().
Referenced by KKB::KKStrList::BinarySearch(), KKMLL::FeatureVectorList::BinarySearchByName(), KKMLL::FeatureVectorList::LookUpByRootName(), KKMLL::FeatureFileIODstWeb::AttrDescLineComparator::operator()(), KKMLL::ClassStatisticList::ClassStatisticSortComparrison::operator()(), KKMLL::ClassStatisticList::ClassStatSortByCount::operator()(), KKMLL::MLClassList::MLClassNameComparison::operator()(), KKMLL::FeatureVectorList::ImageFileNameComparison::operator()(), KKMLL::FeatureVectorList::RootNameComparrison::operator()(), KKMLL::FeatureVectorList::ClassNameComparrison::operator()(), and KKMLL::FeatureVectorList::ClassNameComparrisonReversed::operator()().
| KKStr & KKStr::operator<< | ( | const char * | right | ) |
Definition at line 4129 of file KKStr.cpp.
References Append(), and KKB::KKException::KKException().
Definition at line 4144 of file KKStr.cpp.
References Append(), and Str().
Definition at line 4151 of file KKStr.cpp.
References Append(), and Str().
| KKStr & KKStr::operator<< | ( | char | right | ) |
Definition at line 4206 of file KKStr.cpp.
References Append(), Concat(), KKStr(), operator=(), Str(), and KKB::StrFormatInt64().
Definition at line 4216 of file KKStr.cpp.
References Append(), Concat(), KKStr(), operator=(), Str(), and KKB::StrFormatInt64().
| KKStr & KKStr::operator<< | ( | float | right | ) |
Definition at line 4226 of file KKStr.cpp.
References Append(), and KKB::SPRINTF().
| KKStr & KKStr::operator<< | ( | double | right | ) |
Definition at line 4246 of file KKStr.cpp.
References Append(), and KKB::SPRINTF().
| KKStr & KKStr::operator<< | ( | std::ostream &(*)(std::ostream &) | mf | ) |
| bool KKStr::operator<= | ( | const KKStr & | right | ) | const |
Definition at line 1390 of file KKStr.cpp.
References KKB::KKException::KKException().
Referenced by KKMLL::ConfusionMatrix2::AccuracyStr(), KKLSC::ScannerFileEntry::Assign(), KKB::RunLog::AttachFile(), KKB::RunLog::AttachFileAppend(), KKMLL::TrainingProcess2::BuildTrainingProcess(), KKMLL::Classifier2::Classifier2(), KKMLL::FileDesc::ClassNameAttribute(), KKLSC::ScannerFileEntry::Description(), KKMLL::MLClass::Description(), KKMLL::FeatureVector::ExampleFileName(), KKB::KKThread::ExceptionText(), KKMLL::FeatureVectorList::ExtractDuplicatesByRootImageFileName(), KKMLL::MLClassList::ExtractThreeTitleLines(), KKMLL::FeatureFileIO::FeatureDataReSink(), KKMLL::TrainingClass::FeatureFileName(), KKMLL::FileDesc::FileName(), KKMLL::ModelParam::FileName(), KKMLL::FeatureVectorList::FileName(), KKB::Raster::FileName(), KKMLL::ConfusionMatrix2::FMeasure(), KKB::PointList::FromDelStr(), KKLSC::ScannerFileEntry::FullName(), KKMLL::FeatureFileIODstWeb::GetFileDesc(), KKMLL::FeatureFileIOC45::GetFileDesc(), KKB::Configuration::Load(), KKMLL::TrainingConfiguration2::Load(), KKMLL::FeatureFileIOC45::LoadFeatureFile(), KKMLL::FeatureFileIOC45::LoadFile(), KKMLL::TrainingConfiguration2::LoadOtherClasssExamples(), KKMLL::Model::Name(), KKLSC::ScannerFile::Open(), KKMLL::Attribute::operator=(), KKMLL::Orderings::Orderings(), KKB::osGetRootName(), KKB::osGetRootNameOfDirectory(), KKB::osGetRootNameWithExtension(), KKB::osParseFileName(), KKB::osParseFileSpec(), KKMLL::Attribute::ReadXML(), KKMLL::TrainingClassList::RootDir(), KKMLL::TrainingConfiguration2::RootDir(), KKMLL::Model::RootFileName(), KKLSC::ScannerFileEntry::RootName(), KKB::RunLog::RunLog(), KKB::BmpImage::Save(), KKMLL::Orderings::Save(), KKB::BmpImage::SaveGrayscaleInverted4Bit(), KKB::BmpImage::SaveGrayscaleInverted8Bit(), KKLSC::Variables::SetHomeDir(), KKMLL::KKMLVariables::SetMachineLearninigHomeDir(), KKMLL::TrainingClass::SubClassifierName(), SVM233::svm_parameter::svm_parameter(), KKB::Raster::TakeOwnershipOfAnotherRastersData(), KKB::Raster::Title(), ToLatitude(), ToLongitude(), KKB::RunLog::WriteLine(), and KKMLL::NormalizationParms::WriteToFile().
Definition at line 1369 of file KKStr.cpp.
Referenced by KKMLL::FeatureFileIODstWeb::AttrDescLine::AttrDescLine(), KKMLL::ClassificationBiasMatrix::ClassificationBiasMatrix(), KKMLL::TrainingConfiguration2::CreateFromDirectoryStructure(), KKMLL::ClassProbList::CreateFromXMLStream(), KKMLL::TrainingClass::ExpandedDirectory(), ExtractAttribute(), KKMLL::FeatureVectorList::ExtractDuplicatesByRootImageFileName(), KKMLL::FeatureNumList::ExtractFeatureNumsFromStr(), KKMLL::MLClassList::ExtractThreeTitleLines(), KKMLL::FeatureFileIO::FeatureDataReSink(), KKB::PointList::FromDelStr(), GetClassNameByHierarchyLevel(), KKMLL::MLClass::GetClassNameFromDirName(), KKMLL::TrainingConfiguration2::GetEffectiveConfigFileName(), KKMLL::FeatureFileIOC45::GetFileDesc(), KKMLL::FeatureFileIOUCI::GetFileDesc(), KKMLL::TrainingConfiguration2::Load(), KKMLL::FeatureFileIOC45::LoadFeatureFile(), KKMLL::FeatureFileIODstWeb::LoadFile(), KKMLL::FeatureFileIOC45::LoadFile(), KKLSC::ScannerFile::LoadIndexFile(), KKMLL::FeatureFileIO::LoadInSubDirectoryTree(), KKMLL::TrainingConfiguration2::LoadOtherClasssExamples(), KKLSC::ScannerFile::Open(), KKB::operator<<(), KKB::RunLog::operator<<(), operator<<(), KKMLL::Orderings::Orderings(), KKB::osCreateDirectoryPath(), KKB::osCreateUniqueFileName(), KKB::osGetRootName(), KKB::osGetRootNameOfDirectory(), KKB::osGetRootNameWithExtension(), KKB::osParseFileName(), KKB::osParseFileSpec(), KKB::osSubstituteInEnvironmentVariables(), KKMLL::ModelParam::ParseCmdLine(), KKMLL::ModelParamOldSVM::ParseCmdLine(), KKLSC::ScannerFileEntry::ParseTabDelStr(), KKMLL::ConfusionMatrix2::PrintAccuracyByProbByClassHTML(), KKMLL::ModelDual::ProbabilitiesByClassDual(), KKMLL::Model::ProbabilitiesByClassDual(), KKB::ReadImagePGM(), KKB::ReadImagePPM(), KKMLL::AttributeTypeVector::ReadXML(), KKMLL::Attribute::ReadXML(), KKMLL::ModelParamOldSVM::ReadXML(), KKMLL::ModelParam::ReadXMLModelParamToken(), KKMLL::Model::ReadXMLModelToken(), KKMLL::TrainingConfiguration2::RootDir(), KKLSC::ScannerFile::SaveIndexFile(), KKMLL::TrainingProcess2::SaveTrainingProcess(), KKJobManagment::KKJobManager::StatusFileProcessLine(), StripOutAnyComments(), KKLSC::Variables::SubstituteInEnvironmentVariables(), SVM233::svm_parameter::svm_parameter(), KKB::TimeType::TimeType(), KKMLL::ModelParamSvmBase::ToCmdLineStr(), KKMLL::ModelParamDual::ToCmdLineStr(), KKMLL::ModelParamOldSVM::ToCmdLineStr(), ToLatitude(), ToLongitude(), KKMLL::SVMparam::ToString(), ToVectorInt32(), Wide(), and KKB::XmlTag::XmlTag().
| KKStr & KKStr::operator= | ( | const char * | src | ) |
Definition at line 1442 of file KKStr.cpp.
References KKB::STRCOPY().
Referenced by KKMLL::ConfusionMatrix2::AccuracyStr(), KKB::XmlElementKeyValuePairs::Add(), KKB::RunLog::AttachFile(), KKB::BmpImage::BmpImage(), KKMLL::TrainingConfiguration2::CreateFromFeatureVectorList(), KKB::RunLog::DetachFile(), ExtractAttribute(), KKMLL::MLClassList::ExtractThreeTitleLines(), ExtractToken(), ExtractToken2(), KKMLL::MLClassList::ExtractTwoTitleLines(), KKB::PointList::FromDelStr(), KKMLL::FeatureFileIOC45::GetFileDesc(), KKMLL::FeatureFileIORoberts::GetFileDesc(), KKMLL::FeatureFileIOUCI::GetFileDesc(), KKMLL::FeatureFileIO::GetLine(), KKMLL::FeatureFileIO::GetToken(), KKMLL::FeatureFileIODstWeb::LoadFile(), KKMLL::FeatureFileIORoberts::LoadFile(), KKMLL::FeatureFileIOC45::LoadFile(), KKB::Configuration::LoadFile(), KKMLL::FeatureFileIO::LoadInSubDirectoryTree(), KKB::operator>>(), KKB::osCreateDirectoryPath(), KKB::osCreateUniqueFileName(), KKB::osGetErrorNoDesc(), KKB::osGetListOfFilesInDirectoryTree(), KKB::osParseFileName(), KKB::osParseFileSpec(), KKMLL::ModelParamOldSVM::ParseCmdLine(), KKMLL::ConfusionMatrix2::PrintAccuracyByProbByClassHTML(), KKLSC::ScannerFile::ReadHeaderOneLine(), ReadWholeTag(), KKB::RunLog::RunLog(), KKMLL::FeatureFileIODstWeb::SaveFile(), StripOutAnyComments(), KKMLL::FeatureVectorList::SynchronizeSymbolicData(), ToLatitude(), ToLongitude(), KKLSC::ScannerFile::WriteHeader(), and KKB::RunLog::WriteLine().
Definition at line 1478 of file KKStr.cpp.
References KKB::SPRINTF(), and KKB::STRCOPY().
Referenced by KKMLL::SizeDistribution::ClassTotals::PrintFormatedLine().
Definition at line 1509 of file KKStr.cpp.
References Concat(), and KKB::KKException::KKException().
| bool KKStr::operator== | ( | const KKStr & | right | ) | const |
Definition at line 1550 of file KKStr.cpp.
References Compare().
Referenced by KKMLL::FeatureVectorList::ExtractDuplicatesByRootImageFileName(), KKMLL::FeatureFileIODstWeb::GetFileDesc(), KKMLL::FeatureFileIODstWeb::LoadFile(), KKMLL::FeatureVectorList::LookUpByRootName(), and KKMLL::ModelDual::ReconcilePredictions().
| bool KKStr::operator== | ( | KKStrConstPtr | right | ) | const |
| bool KKStr::operator== | ( | const char * | rtStr | ) | const |
Definition at line 1588 of file KKStr.cpp.
References StrEqual().
Referenced by KKMLL::BinaryClassParms::CreateFromTabDelStr(), KKMLL::ModelParam::EncodingMethodFromStr(), KKMLL::EncodingMethodFromStr(), KKMLL::DuplicateImage::ExampleWithSmallestScanLine(), KKMLL::FeatureNumList::ExtractFeatureNumsFromStr(), ExtractTokenBool(), KKMLL::FeatureFileIOSparse::GetFileDesc(), KKMLL::KernalTypeFromStr(), SVM289_BFS::Kernel_Type_FromStr(), SVM289_MFS::Kernel_Type_FromStr(), KKMLL::FeatureFileIOC45::LoadFeatureFile(), KKMLL::FeatureFileIOC45::LoadFile(), KKB::Configuration::LoadFile(), KKMLL::FeatureFileIO::LoadInSubDirectoryTree(), KKMLL::MachineTypeFromStr(), osFileNameMatchesSearchFields(), KKB::osGetListOfFilesInDirectoryTree(), KKMLL::ModelParam::ParseCmdLine(), KKMLL::SVMparam::ParseCmdLineParameter(), SVM233::svm_parameter::ParseTabDelStr(), SVM289_BFS::svm_parameter::ParseTabDelStr(), SVM289_MFS::svm_parameter::ParseTabDelStr(), SVM233::svm_parameter::ProcessSvmParameter(), KKB::ReadImage(), KKB::SaveImage(), KKMLL::SelectionMethodFromStr(), KKJobManagment::KKJobManager::StatusFileProcessLine(), KKB::SupportedImageFileFormat(), SVM233::svm_parameter::svm_parameter(), SVM289_BFS::SVM_Type_FromStr(), and SVM289_MFS::SVM_Type_FromStr().
| bool KKStr::operator> | ( | const KKStr & | right | ) | const |
Definition at line 1619 of file KKStr.cpp.
References Compare().
Referenced by KKB::KKStrList::BinarySearch(), KKMLL::FeatureVectorList::BinarySearchByName(), KKMLL::FeatureVectorList::LookUpByRootName(), KKMLL::FeatureVectorList::ImageFileNameComparisonReversed::operator()(), KKMLL::FeatureVectorList::RootNameComparrisonReversed::operator()(), KKMLL::FeatureVectorList::ClassNameComparrison::operator()(), and KKMLL::FeatureVectorList::ClassNameComparrisonReversed::operator()().
| bool KKStr::operator>= | ( | const KKStr & | right | ) | const |
| char KKStr::operator[] | ( | kkint16 | i | ) | const |
Returns back the character at position 'i', if i > length of KKStr then returns back 0.
Definition at line 3379 of file KKStr.cpp.
Referenced by KKB::osGetDriveLetter(), KKB::osSubstituteInEnvironmentVariables(), and KKB::ReadImagePGM().
| char KKStr::operator[] | ( | kkuint16 | i | ) | const |
Returns back the character at position 'i', if i > length of KKStr then returns back 0.
Definition at line 3396 of file KKStr.cpp.
Referenced by KKB::osSplitDirectoryPathIntoParts().
| char KKStr::operator[] | ( | kkint32 | i | ) | const |
Returns back the character at position 'i', if i > length of KKStr then returns back 0.
Definition at line 3413 of file KKStr.cpp.
Referenced by KKMLL::TrainingClass::ExpandedDirectory(), ExtractAttribute(), KKB::BitString::FromHexStr(), KKB::KKStrParser::GetNextTokenChar(), KKMLL::ModelParamOldSVM::ParseCmdLine(), StripOutAnyComments(), KKLSC::Variables::SubstituteInEnvironmentVariables(), and SVM233::svm_parameter::svm_parameter().
| char KKStr::operator[] | ( | kkuint32 | i | ) | const |
Returns back the character at position 'i', if i > length of KKStr then returns back 0.
Definition at line 3430 of file KKStr.cpp.
Referenced by KKMLL::MLClass::GetClassNameFromDirName(), KKMLL::FeatureFileIOC45::GetFileDesc(), KKB::TokenBufferStr::GetNextChar(), KKB::osSplitDirectoryPathIntoParts(), KKB::osValidFileNameErrors(), KKB::TokenBufferStr::PeekNextChar(), and StripOutInvalidLatexCaracters().
| VectorKKStr KKStr::Parse | ( | const char * | delStr = "\n\r\t, " | ) | const |
Will break up the contents of the string into tokens where one of the characters in 'delStr' separates each token.
Definition at line 3461 of file KKStr.cpp.
References Concat(), Empty(), ExtractToken2(), KKStr(), TrimLeft(), and TrimRight().
| KKStr KKStr::QuotedStr | ( | ) | const |
Returns a quoted version of string where special characters Line-Feed, Carriage Return, and Tab, are encoded as escape sequences.
string where 'Line Feed(\n'), Carriage Returns('\r'), Tabs('\t'), and Quotes(") are coded as escape sequences "\n", "\r", "t", or "\". It is then enclosed in quotes(").
Definition at line 2890 of file KKStr.cpp.
References Append(), Concat(), KKStr(), and Len().
Referenced by ToQuotedStr(), KKB::XmlTag::ToString(), KKB::KKStrList::WriteXML(), and KKB::KKStrListIndexed::WriteXML().
| void KKStr::ReadXML | ( | XmlStream & | s, |
| XmlTagConstPtr | tag, | ||
| VolConstBool & | cancelFlag, | ||
| RunLog & | log | ||
| ) |
Definition at line 4438 of file KKStr.cpp.
References Append(), KKB::XmlTag::AttributeValueInt32(), KKB::XmlContent::Content(), KKB::XmlStream::GetNextToken(), KKB::XmlToken::tokContent, KKB::XmlToken::TokenType(), and TrimRight().
| void KKStr::RightPad | ( | kkint32 | width, |
| char | ch = ' ' |
||
| ) |
Pads string on the right side with specified character so that the string will be of specified length.
| [in] | width | Width that string will need to be; if less than current length then the string will be truncated to 'len'. |
| [in] | ch | Character to pad with; if not specified will default to space (' '). |
Definition at line 2239 of file KKStr.cpp.
References Concat(), KKB::KKException::KKException(), MaxLenSupported(), operator+(), KKB::operator+(), and KKB::StrFromInt32().
Referenced by KKMLL::MLClassList::ExtractThreeTitleLines(), KKMLL::SizeDistribution::ClassTotals::PrintFormatedLine(), Spaces(), and Wide().
Returns a string of spaces 'c' characters long.
| [in] | c | Number of space characters to fill the string with. |
Definition at line 4329 of file KKStr.cpp.
References Concat(), and RightPad().
Referenced by Wide().
| VectorKKStr KKStr::Split | ( | const char * | delStr = "\n\r\t, " | ) | const |
Breaks up the contents of the string into tokens where the characters in 'delStr' acts as separates each token.
| [in] | delStr | List of characters that where any one of them can be a delimiter. |
Definition at line 3480 of file KKStr.cpp.
References Concat(), Empty(), ExtractToken2(), KKStr(), TrimLeft(), and TrimRight().
Referenced by KKMLL::FeatureFileIOC45::GetFileDesc().
| VectorKKStr KKStr::Split | ( | char | del | ) | const |
Splits the string up into tokens using 'del' as the separator returning them in a vector.
Definition at line 3500 of file KKStr.cpp.
References Concat(), Empty(), ExtractToken2(), KKStr(), TrimLeft(), and TrimRight().
Referenced by KKMLL::MLClassList::BuildListFromDelimtedStr(), DelimitedStrToArray(), KKMLL::MLClassList::ExtractHTMLTableHeader(), KKMLL::MLClass::MLClassForGivenHierarchialLevel(), KKJobManagment::KKJob::PrerequisitesFromStr(), and KKJobManagment::KKJob::ProcessStatusStr().
| bool KKStr::StartsWith | ( | const KKStr & | value | ) | const |
Definition at line 1137 of file KKStr.cpp.
References StartsWith().
Referenced by KKMLL::ModelDual::ReconcileProbAndVotes().
| bool KKStr::StartsWith | ( | const char * | value | ) | const |
Definition at line 1144 of file KKStr.cpp.
References StartsWith().
Referenced by KKMLL::ClassProbList::CreateFromXMLStream().
| bool KKStr::StartsWith | ( | const KKStr & | value, |
| bool | ignoreCase | ||
| ) | const |
Definition at line 1150 of file KKStr.cpp.
References StrEqualN(), and StrEqualNoCaseN().
Referenced by StartsWith().
| bool KKStr::StartsWith | ( | const char * | value, |
| bool | ignoreCase | ||
| ) | const |
Definition at line 1169 of file KKStr.cpp.
References StrEqualN(), and StrEqualNoCaseN().
Referenced by KKLSC::ScannerFile::ReportTextMsg(), and StartsWith().
|
inline |
Returns a pointer to a ascii string.
Definition at line 422 of file KKStr.h.
Referenced by KKB::BmpImage::BmpImage(), c_str(), data(), EqualIgnoreCase(), Find(), KKLSC::ScannerFile::GuessFormatOfFile(), KKB::KKStrParser::KKStrParser(), KKMLL::FeatureNumList::Load(), KKMLL::MLClassList::Load(), KKB::Configuration::LoadFile(), KKLSC::ScannerFile::LoadIndexFile(), KKLSC::ScannerFile::Open(), KKB::KKStr::LessCaseInsensitiveOperator::operator()(), KKB::operator<<(), KKB::RunLog::operator<<(), operator<<(), KKMLL::FeatureVectorList::OrderUsingNamesFromAFile(), KKB::osDeleteFile(), KKB::osFileExists(), osFileNameMatchesSearchFields(), osLocateEnvStrStart(), KKB::osLookForFile(), KKB::ReadImagePGM(), KKB::ReadImagePPM(), KKB::BmpImage::Save(), KKB::BmpImage::SaveGrayscaleInverted4Bit(), KKB::BmpImage::SaveGrayscaleInverted8Bit(), KKB::SaveImagePGM(), KKB::SaveImagePNG(), KKB::SaveImagePPM(), KKB::KKException::what(), Wide(), KKLSC::ScannerFile::WriteInstrumentDataWord(), and KKB::XmlContent::WriteXml().
|
static |
|
static |
Definition at line 4375 of file KKStr.cpp.
Referenced by StrInStr().
|
static |
|
static |
|
static |
|
static |
Definition at line 373 of file KKStr.cpp.
Referenced by EndsWith(), operator!=(), and operator==().
|
static |
|
static |
|
static |
|
static |
| bool KKStr::StrInStr | ( | const KKStr & | searchField | ) | const |
Searches for the occurrence of 'searchField' and where in the string. If found will return 'true' otherwise 'false'.
Definition at line 2731 of file KKStr.cpp.
References StrInStr().
Referenced by Contains().
| void KKStr::StrReplace | ( | char ** | dest, |
| const char * | src | ||
| ) |
Replaces the contents of *dest with *src.
First deletes current *dest then allocates new a new string to **dest so no memory is lost.
Definition at line 456 of file KKStr.cpp.
References Concat(), operator+(), KKB::operator+(), KKB::STRCOPY(), and KKB::StrFormatInt().
| wchar_t * KKStr::StrWide | ( | ) | const |
returns a SubString consisting of all characters starting at index 'firstChar' until the end of the string.
If the index 'firstChar' is past the end of the string a empty string will be returned.
| [in] | firstChar | First character in string to include in the sub-string. |
Definition at line 2780 of file KKStr.cpp.
References Append(), Concat(), and KKStr().
Referenced by KKMLL::FeatureFileIODstWeb::AttrDescLine::AttrDescLine(), KKMLL::DuplicateImage::ExampleWithSmallestScanLine(), ExtractAttribute(), KKMLL::MLClassList::ExtractTwoTitleLines(), KKB::PointList::FromDelStr(), KKMLL::FeatureFileIODstWeb::GetFileDesc(), KKMLL::FeatureFileIOC45::GetFileDesc(), GetNextToken2(), KKMLL::FeatureFileIOC45::LoadFeatureFile(), KKMLL::FeatureFileIODstWeb::LoadFile(), KKB::osCreateDirectoryPath(), KKB::osGetFileNamePartOfFile(), KKB::osGetRootName(), KKB::osGetRootNameOfDirectory(), KKB::osGetRootNameWithExtension(), KKB::osParseFileName(), KKB::osParseFileSpec(), KKB::osSubstituteInEnvironmentVariables(), SVM233::svm_parameter::ProcessSvmParameter(), KKLSC::Variables::SubstituteInEnvironmentVariables(), Tail(), ToLatitude(), ToLongitude(), and ToVectorInt32().
returns a SubString consisting of all characters starting at index 'firstChar' and ending at 'lastIndex'
If the index 'firstChar' is past the end of the string a empty string will be returned. If 'lastIndex is past the end of the string then will only include characters until the end of the string.
The length of the substring will be (lastChar - firstChar) + 1.
| [in] | firstChar | First character in string to include in the sub-string. |
| [in] | lastChar | Last character in include in the string. |
Definition at line 2802 of file KKStr.cpp.
References Concat(), and KKStr().
Referenced by KKMLL::DuplicateImage::ExampleWithSmallestScanLine(), ExtractAttribute(), KKMLL::MLClassList::ExtractTwoTitleLines(), KKB::PointList::FromDelStr(), KKMLL::MLClass::GetClassNameFromDirName(), KKMLL::FeatureFileIODstWeb::GetFileDesc(), KKMLL::FeatureFileIOC45::GetFileDesc(), KKMLL::FeatureFileIOUCI::GetFileDesc(), KKMLL::FeatureFileIOSparse::GetFileDesc(), KKMLL::FeatureFileIOC45::LoadFeatureFile(), KKMLL::FeatureFileIOUCI::LoadFile(), MaxLen(), KKB::osGetParentDirectoryOfDirPath(), KKB::osGetParentDirPath(), KKB::osGetPathPartOfFile(), KKB::osGetRootName(), KKB::osParseFileName(), KKB::osParseFileSpec(), KKB::osRemoveExtension(), KKB::osSubstituteInEnvironmentVariables(), KKJobManagment::KKJobManager::StatusFileProcessLine(), StripOutAnyComments(), KKLSC::Variables::SubstituteInEnvironmentVariables(), KKB::TimeType::TimeType(), ToLatitude(), ToLongitude(), ToPercentage(), and ToVectorInt32().
Returns a string consisting of the 'tailLen' characters from the end of the string.
Return back the last 'tailLen' characters.
Definition at line 2847 of file KKStr.cpp.
References SubStrPart().
| bool KKStr::ToBool | ( | ) | const |
Returns the bool equivalent of the string, ex 'Yes' = true, 'No' = false, 'True' = true, etc.
Definition at line 3523 of file KKStr.cpp.
References KKB::STRICMP().
Referenced by KKLSC::ScannerFile::ExtractHeaderField(), KKB::KKStrParser::GetNextTokenBool(), SVM289_BFS::svm_parameter::ProcessSvmParameter(), SVM289_MFS::svm_parameter::ProcessSvmParameter(), KKB::KKStrListIndexed::ReadXML(), KKB::XmlElementBool::XmlElementBool(), and KKMLL::XmlElementMLClass::XmlElementMLClass().
| double KKStr::ToDouble | ( | ) | const |
Definition at line 3541 of file KKStr.cpp.
Referenced by KKB::KKStrParser::GetNextTokenDouble(), KKMLL::SVMparam::ParseCmdLineParameter(), SVM233::svm_parameter::ParseTabDelStr(), SVM289_BFS::svm_parameter::ParseTabDelStr(), SVM289_MFS::svm_parameter::ParseTabDelStr(), SVM289_BFS::svm_parameter::ProcessSvmParameter(), SVM289_MFS::svm_parameter::ProcessSvmParameter(), ToLatitude(), and ToLongitude().
| float KKStr::ToFloat | ( | ) | const |
Definition at line 3553 of file KKStr.cpp.
Referenced by KKLSC::ScannerFile::ExtractHeaderField(), KKB::KKStrParser::GetNextTokenFloat(), KKLSC::ScannerHeaderFields::GetValueFloat(), KKMLL::FeatureFileIOC45::LoadFile(), SVM233::svm_parameter::ParseTabDelStr(), SVM289_BFS::svm_parameter::ParseTabDelStr(), SVM289_MFS::svm_parameter::ParseTabDelStr(), ToPercentage(), and KKMLL::XmlElementMLClass::XmlElementMLClass().
| kkint32 KKStr::ToInt | ( | ) | const |
Definition at line 3565 of file KKStr.cpp.
Referenced by KKLSC::ScannerFile::ExtractHeaderField(), KKB::KKStrParser::GetNextTokenInt(), KKMLL::ModelParam::ParseCmdLine(), SVM233::svm_parameter::ParseTabDelStr(), SVM289_BFS::svm_parameter::ParseTabDelStr(), SVM289_MFS::svm_parameter::ParseTabDelStr(), KKB::ReadImagePGM(), and KKJobManagment::KKJobManager::StatusFileProcessLine().
| kkint16 KKStr::ToInt16 | ( | ) | const |
Definition at line 3576 of file KKStr.cpp.
Referenced by KKMLL::MLClassIndexList::ParseClassIndexList().
| kkint32 KKStr::ToInt32 | ( | ) | const |
Definition at line 3587 of file KKStr.cpp.
Referenced by KKB::XmlAttributeList::AttributeValueInt32(), KKLSC::ScannerFile::ExtractHeaderField(), KKLSC::ScannerHeaderFields::GetValueInt32(), KKB::osGetNumberOfProcessors(), SVM233::svm_parameter::ProcessSvmParameter(), KKB::ReadImagePPM(), and ToVectorInt32().
| KKB::kkint64 KKStr::ToInt64 | ( | ) | const |
| KKStrPtr KKStr::ToKKStrPtr | ( | ) | const |
| double KKStr::ToLatitude | ( | ) | const |
Processes string as if a standard latitude; ex: "15:32.2S" = -15.53833.
Definition at line 3725 of file KKStr.cpp.
References ChopFirstChar(), ChopLastChar(), Concat(), FirstChar(), KKStr(), LocateCharacter(), operator=(), SubStrPart(), ToDouble(), Trim(), TrimLeft(), and TrimRight().
| long KKStr::ToLong | ( | ) | const |
Definition at line 3611 of file KKStr.cpp.
Referenced by KKB::KKStrParser::GetNextTokenLong().
| double KKStr::ToLongitude | ( | ) | const |
Processes string as if a standard longitude; ex: "95:32.2E" = 95.53833.
Definition at line 3819 of file KKStr.cpp.
References ChopFirstChar(), ChopLastChar(), Concat(), FirstChar(), KKStr(), LocateCharacter(), operator=(), SubStrPart(), ToDouble(), Trim(), and TrimRight().
| KKStr KKStr::ToLower | ( | ) | const |
Definition at line 2529 of file KKStr.cpp.
References Concat(), KKStr(), and Lower().
Referenced by KKMLL::FeatureFileIO::FeatureFileIO(), and KKB::ReadImage().
| float KKStr::ToPercentage | ( | ) | const |
Definition at line 3623 of file KKStr.cpp.
References Concat(), LastChar(), Len(), SubStrPart(), and ToFloat().
|
inline |
Definition at line 540 of file KKStr.h.
References QuotedStr().
| kkuint32 KKStr::ToUint | ( | ) | const |
| KKB::kkuint32 KKStr::ToUint32 | ( | ) | const |
| KKB::kkuint64 KKStr::ToUint64 | ( | ) | const |
| KKB::ulong KKStr::ToUlong | ( | ) | const |
| KKStr KKStr::ToUpper | ( | ) | const |
Definition at line 2517 of file KKStr.cpp.
References Concat(), KKStr(), and Upper().
Referenced by KKMLL::MLClass::CreateNewMLClass(), KKMLL::ModelParam::EncodingMethodFromStr(), KKMLL::EncodingMethodFromStr(), KKMLL::MachineTypeFromStr(), KKMLL::Attribute::ReadXML(), and KKMLL::SelectionMethodFromStr().
| VectorInt32 * KKStr::ToVectorInt32 | ( | ) | const |
Definition at line 3671 of file KKStr.cpp.
References Concat(), Empty(), KKB::KKStrParser::GetNextToken(), KKB::KKStrParser::KKStrParser(), LocateCharacter(), operator=(), SubStrPart(), and ToInt32().
| wchar_t * KKStr::ToWchar_t | ( | ) | const |
Definition at line 3703 of file KKStr.cpp.
Referenced by KKB::ReadImageUsingGDI().
| KKStr KKStr::ToXmlStr | ( | ) | const |
Definition at line 2929 of file KKStr.cpp.
References Append(), Concat(), EmptyStr(), KKStr(), and Len().
| KKStr & KKStr::Trim | ( | const char * | whiteSpaceChars = "\n\r\t " | ) |
Definition at line 1686 of file KKStr.cpp.
References TrimLeft(), and TrimRight().
Referenced by KKB::osReadRestOfLine(), ToLatitude(), and ToLongitude().
| void KKStr::TrimLeft | ( | const char * | whiteSpaceChars = "\n\r\t " | ) |
Definition at line 1745 of file KKStr.cpp.
Referenced by KKMLL::FeatureFileIODstWeb::AttrDescLine::AttrDescLine(), KKB::CmdLineExpander::CmdLineExpander(), KKMLL::FeatureNumList::ExtractFeatureNumsFromStr(), KKMLL::MLClassList::ExtractThreeTitleLines(), KKB::PointList::FromDelStr(), KKMLL::FeatureFileIODstWeb::GetFileDesc(), KKMLL::FeatureFileIOUCI::GetFileDesc(), KKMLL::FeatureFileIOUCI::LoadFile(), KKB::operator>>(), Parse(), KKMLL::ModelParam::ParseCmdLine(), KKMLL::ModelParamOldSVM::ParseCmdLine(), Split(), KKJobManagment::KKJobManager::StatusFileProcessLine(), KKJobManagment::KKJobManager::StatusFileProcessLineJobStatusChange(), SVM233::svm_parameter::svm_parameter(), ToLatitude(), Trim(), and Wide().
| KKStr & KKStr::TrimRight | ( | const char * | whiteSpaceChars = "\n\r\t " | ) |
Definition at line 1695 of file KKStr.cpp.
Referenced by KKMLL::FeatureFileIODstWeb::AttrDescLine::AttrDescLine(), KKB::CmdLineExpander::CmdLineExpander(), KKMLL::MLClassList::ExtractThreeTitleLines(), KKMLL::FeatureFileIODstWeb::GetFileDesc(), KKMLL::FeatureFileIOUCI::GetFileDesc(), KKB::KKStrParser::GetRestOfLine(), KKB::KKStrParser::GetRestOfStr(), KKMLL::MLClassList::Load(), KKMLL::FeatureFileIOUCI::LoadFile(), KKB::operator>>(), KKB::osReadRestOfLine(), Parse(), KKB::KKStrList::ParseDelimitedString(), ReadXML(), Split(), KKJobManagment::KKJobManager::StatusFileProcessLine(), KKJobManagment::KKJobManager::StatusFileProcessLineJobStatusChange(), ToLatitude(), ToLongitude(), Trim(), and Wide().
| void KKStr::TrimRightChar | ( | ) |
| void KKStr::Upper | ( | ) |
Converts all characters in string to their Upper case equivalents via 'toupper'.
Definition at line 2461 of file KKStr.cpp.
Referenced by KKMLL::Attribute::Attribute(), KKMLL::SizeDistribution::ClassTotals::ClassTotals(), KKMLL::BinaryClassParms::CreateFromTabDelStr(), KKMLL::DuplicateImage::ExampleWithSmallestScanLine(), KKMLL::FeatureNumList::ExtractFeatureNumsFromStr(), ExtractTokenBool(), KKMLL::FeatureFileIODstWeb::GetFileDesc(), KKMLL::KernalTypeFromStr(), SVM289_BFS::Kernel_Type_FromStr(), SVM289_MFS::Kernel_Type_FromStr(), KKMLL::FeatureFileIOC45::LoadFeatureFile(), KKMLL::FeatureFileIODstWeb::LoadFile(), KKMLL::AttributeList::LookUpByName(), KKB::osLookForFile(), KKMLL::ModelParam::ParseCmdLine(), KKMLL::ModelParamOldSVM::ParseCmdLine(), KKMLL::SVMparam::ParseCmdLineParameter(), SVM233::svm_parameter::ProcessSvmParameter(), KKB::SaveImage(), KKB::SupportedImageFileFormat(), SVM289_BFS::SVM_Type_FromStr(), SVM289_MFS::SVM_Type_FromStr(), and ToUpper().
| bool KKStr::ValidInt | ( | kkint32 & | value | ) |
| bool KKStr::ValidNum | ( | double & | value | ) | const |
Pads the string with spaces so that it is exactly 'width' characters long. Can pad either left, right, or center as specified by 'dir'. If KKStr Already greater than 'width' will truncate new string. /summary> param name='width'> Width of KKStr; will pad KKStr with spaces until it is width long. param name='dir'>Direction to pad from 'L' - Pad on the left side, 'R' - Pad on the right side, and 'C' - Pad on left and Right so that text is centered.
Definition at line 2203 of file KKStr.cpp.
References Concat(), KKStr(), LeftPad(), Len(), KKB::operator+(), operator=(), RightPad(), Spaces(), Str(), TrimLeft(), and TrimRight().
| void KKStr::WriteXML | ( | const KKStr & | varName, |
| std::ostream & | o | ||
| ) | const |
Definition at line 4420 of file KKStr.cpp.
References KKB::XmlTag::AddAtribute(), Empty(), KKB::XmlTag::tagEnd, KKB::XmlTag::tagStart, KKB::XmlTag::WriteXML(), KKB::XmlContent::WriteXml(), and KKB::XmlTag::XmlTag().
Referenced by KKMLL::Model::WriteModelXMLFields(), KKMLL::ModelParamSvmBase::WriteXML(), KKMLL::ModelParamDual::WriteXML(), KKMLL::FeatureEncoder::WriteXML(), KKMLL::ModelParamOldSVM::WriteXML(), KKMLL::TrainingClassList::WriteXML(), SVM233::SvmModel233::WriteXML(), SVM289_MFS::Svm_Model::WriteXML(), KKMLL::ModelOldSVM::WriteXML(), KKMLL::SVMModel::WriteXML(), KKMLL::TrainingProcess2::WriteXML(), and KKMLL::ModelParam::WriteXMLFields().