Go to the SVN repository for this file.
40 string Identifier(
const string& typeName,
boolcapitalize)
43s.reserve(typeName.size());
44string::const_iterator
i= typeName.begin();
45 if(
i!= typeName.end() ) {
46 if(
isalnum((
unsigned char)(*
i))) {
47s += capitalize? (char)
toupper((
unsigned char)(*i)) : *
i;
50 if(*
i!=
'_'&& !ent.empty()) {
56 while( ++
i!= typeName.end() ) {
61 if( c ==
'-'|| c ==
'.'|| c ==
'_') {
63}
else if(!
isalnum((
unsigned char)c)) {
84 const char* ptr =
code.data();
88 reinterpret_cast<const char*
>(memchr(ptr,
'\n',
size));
95 size_tlineSize = endl - ptr;
96 out.append(ptr, ptr + lineSize);
111 const char* ptr =
code.data();
115 reinterpret_cast<const char*
>(memchr(ptr,
'\n',
size));
117 out.write(ptr,
size) <<
'\n';
121 size_tlineSize = endl - ptr;
122 out.write(ptr, lineSize);
Include a standard set of the NCBI C++ Toolkit most basic headers.
std::ofstream out("events_result.xml")
main entry point for tests
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
IO_PREFIX::ostream CNcbiOstream
Portable alias for ostream.
NCBI_NS_STD::string::size_type SIZE_TYPE
static string HtmlEntity(TUnicodeSymbol uch)
Returns HTML entity name for this symbol if one exists (without leading ampersand and trailing semico...
const struct ncbi::grid::netcache::search::fields::SIZE size
NCBI C++ stream class wrappers for triggering between "new" and "old" C++ stream libraries.
string Tabbed(const string &code, const char *tab)
CNcbiOstream & WriteTabbed(CNcbiOstream &out, const string &code, const char *tab)
string Identifier(const string &typeName, bool capitalize)
CNcbiOstream & PrintASNNewLine(CNcbiOstream &out, int indent)
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