Xmipp  v3.23.11-Nereus
Namespaces | Enumerations | Functions | Variables
text.cpp File Reference
#include "cif++/text.hpp"
#include <algorithm>
#include <cassert>
Include dependency graph for text.cpp:

Go to the source code of this file.

Namespaces

 cif
 

Enumerations

enum  cif::LineBreakClass {
  cif::kLBC_OpenPunctuation, cif::kLBC_ClosePunctuation, cif::kLBC_CloseParenthesis, cif::kLBC_Quotation,
  cif::kLBC_NonBreaking, cif::kLBC_Nonstarter, cif::kLBC_Exlamation, cif::kLBC_SymbolAllowingBreakAfter,
  cif::kLBC_InfixNumericSeparator, cif::kLBC_PrefixNumeric, cif::kLBC_PostfixNumeric, cif::kLBC_Numeric,
  cif::kLBC_Alphabetic, cif::kLBC_Ideographic, cif::kLBC_Inseperable, cif::kLBC_Hyphen,
  cif::kLBC_BreakAfter, cif::kLBC_BreakBefor, cif::kLBC_BreakOpportunityBeforeAndAfter, cif::kLBC_ZeroWidthSpace,
  cif::kLBC_CombiningMark, cif::kLBC_WordJoiner, cif::kLBC_HangulLVSyllable, cif::kLBC_HangulLVTSyllable,
  cif::kLBC_HangulLJamo, cif::kLBC_HangulVJamo, cif::kLBC_HangulTJamo, cif::kLBC_MandatoryBreak,
  cif::kLBC_CarriageReturn, cif::kLBC_LineFeed, cif::kLBC_NextLine, cif::kLBC_Surrogate,
  cif::kLBC_Space, cif::kLBC_ContigentBreakOpportunity, cif::kLBC_Ambiguous, cif::kLBC_ComplexContext,
  cif::kLBC_Unknown
}
 

Functions

bool cif::iequals (std::string_view a, std::string_view b)
 
bool cif::iequals (const char *a, const char *b)
 
int cif::icompare (std::string_view a, std::string_view b)
 
int cif::icompare (const char *a, const char *b)
 
void cif::to_lower (std::string &s)
 
std::string cif::to_lower_copy (std::string_view s)
 
void cif::to_upper (std::string &s)
 
void cif::replace_all (std::string &s, std::string_view what, std::string_view with)
 
bool cif::icontains (std::string_view s, std::string_view q)
 
void cif::trim_right (std::string &s)
 
std::string cif::trim_right_copy (std::string_view s)
 
std::string cif::trim_left_copy (std::string_view s)
 
void cif::trim_left (std::string &s)
 
void cif::trim (std::string &s)
 
std::string cif::trim_copy (std::string_view s)
 
std::tuple< std::string, std::string > cif::split_tag_name (std::string_view tag)
 
std::string cif::cif_id_for_number (int number)
 
std::string::const_iterator cif::nextLineBreak (std::string::const_iterator text, std::string::const_iterator end)
 
std::vector< std::string > cif::wrapLine (const std::string &text, size_t width)
 
std::vector< std::string > cif::word_wrap (const std::string &text, size_t width)
 

Variables

const uint8_t cif::kCharToLowerMap [256]
 
const LineBreakClass cif::kASCII_LBTable [128]