A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/string__utils_8cpp_source.html below:

NCBI C++ ToolKit: src/gui/utils/string_utils.cpp Source File

Go to the documentation of this file.

Go to the SVN repository for this file.

37 #include <corelib/ncbi_base64.h> 48  for

(

size_t i

= 0; cstrings[

i

];

i

++) {

77  if

(0 ==

count

.count(*itStr))

89

out_str += iter->first;

100  size_t

src_size =

str

.size();

102  size_t

ptr = 0, src_read, dst_written, line_len = 0;

103  while

(src_size > 0) {

105

dst_buf,

sizeof

(dst_buf), &dst_written, &line_len);

107

src_size -= src_read;

108

encoded +=

string

(dst_buf, dst_written);

115  size_t

src_size =

str

.size();

118  size_t

ptr = 0, src_read, dst_written;

119  while

(src_size > 0) {

120  if

(!

BASE64_Decode

(&

str

[ptr], src_size, &src_read, dst_buf,

sizeof

(dst_buf), &dst_written))

123

src_size -= src_read;

124

decoded +=

string

(dst_buf, dst_written);

static DLIST_TYPE *DLIST_NAME() first(DLIST_LIST_TYPE *list)

static const char * str(char *buf, int n)

static const char *const strings[]

#define ITERATE(Type, Var, Cont)

ITERATE macro to sequence through container elements.

static string FormatStringsOccurrences(const std::vector< string > &strings, const string &delimiter=", ")

static string ConcatenateStrings(const std::vector< string > &strings, const string &delimiter=", ")

static string BuildString(const char *cstrings[])

Concatenate a bunch of C-stype strings into one string.

static string base64Decode(const string &str)

static string base64Encode(const string &str)

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

static enable_if< is_arithmetic< TNumeric >::value||is_convertible< TNumeric, Int8 >::value, string >::type NumericToString(TNumeric value, TNumToStringFlags flags=0, int base=10)

Convert numeric value to string.

static const char delimiter[]


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