20 #ifndef ECL_CONVERTERS_STRINGS_HPP_ 21 #define ECL_CONVERTERS_STRINGS_HPP_ 51 class Converter<std::string,int> :
public converters::ConverterBase {
66 bool negative =
false;
68 #if ECL_SIZE_OF_INT == 4 69 char_string = buffer + 11;
70 #elif ECL_SIZE_OF_INT == 8 71 char_string = buffer + 20;
72 #else // just make sure we have lots of space 73 char_string = buffer + 30;
76 int remaining = input;
91 }
while ( remaining > 0);
96 return s.assign(char_string);
102 #if ECL_SIZE_OF_INT == 4 104 #elif ECL_SIZE_OF_INT == 8 106 #else // just make sure we have lots of space
Primary templates for the family of converter classes.
Type conversions to a readable (ascii) char type.
Primary template and general fallback for converter classes.
Output operator()(const Input &input)
Converts unsigned ints into readable (ascii) characters.