Go to the documentation of this file.Go to the SVN repository for this file.
40 string Identifier(
const string& typeName,
bool capitalize)
43 s.reserve(typeName.size());
44 string::const_iterator
i = typeName.begin();
45 if (
i != typeName.end() ) {
47 s += 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_t lineSize = endl - ptr;
96 out.append(ptr, ptr + lineSize);
111 const char* ptr =
code.data();
115 reinterpret_cast<const char*
>(memchr(ptr,
'\n',
size));
121 size_t lineSize = 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)