{
"Egr",
"Epsilon"},
54{
"Ogr",
"Omicron"},
62{
"Ugr",
"Upsilon"},
70{
"egr",
"epsilon"},
80{
"ogr",
"omicron"},
90{
"ugr",
"upsilon"},
105 while(amp !=
NPOS) {
108 size_told_len = semi - amp - 1;
109 stringts = sgml.substr(amp + 1, old_len);
111 if(it != sc_SgmlAsciiMap.end()) {
112 size_tnew_len = strlen(it->second);
115sgml.replace(amp + 1, old_len, it->second);
116semi = amp + 1 + new_len;
125amp = sgml.find(
'&', semi + 1);
144 while(pos != string::npos && !found) {
146 const char*end =
str.c_str() + pos + 1;
147 while(*end != 0 &&
isalpha(*end)) {
151 if(*end ==
';'&&
len> 1) {
155 while(it != sc_SgmlAsciiMap.end() && !found) {
class CStaticArrayMap<> is an array adaptor that provides an STLish interface to statically-defined a...
TBase::const_iterator const_iterator
static const char * str(char *buf, int n)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
NCBI_NS_STD::string::size_type SIZE_TYPE
static SIZE_TYPE Find(const CTempString str, const CTempString pattern, ECase use_case=eCase, EDirection direction=eForwardSearch, SIZE_TYPE occurrence=0)
Find the pattern in the string.
static bool StartsWith(const CTempString str, const CTempString start, ECase use_case=eCase)
Check if a string starts with a specified prefix value.
static int match(PCRE2_SPTR start_eptr, PCRE2_SPTR start_ecode, uint16_t top_bracket, PCRE2_SIZE frame_size, pcre2_match_data *match_data, match_block *mb)
bool ContainsSgml(const string &str)
DEFINE_STATIC_ARRAY_MAP(TSgmlAsciiMap, sc_SgmlAsciiMap, sc_sgml_entity)
SStaticPair< const char *, const char * > TSgmlAsciiPair
void Sgml2Ascii(string &sgml)
Convert SGML entity to ASCII (in place)
CStaticPairArrayMap< const char *, const char *, PCase_CStr > TSgmlAsciiMap
static const TSgmlAsciiPair sc_sgml_entity[]
Template structure SStaticPair is simlified replacement of STL pair<> Main reason of introducing this...
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4