text
stringlengths
0
2.2M
template <class T>
void printValue(bsl::ostream& out, const T& value)
{
bdlb::PrintMethods::print(out, value, 0, -1);
}
template <class T>
bsl::ostream& operator<<(bsl::ostream& out, const bsl::vector<T>& value)
// Output the specified container 'value' to the specified stream 'out' and
// return that stream.
{
printValue(out, value);
return out;
}
static const char *printableCharacters[256]=
{
"\\x00" , // 0 0
"\\x01" , // 1 1
"\\x02" , // 2 2
"\\x03" , // 3 3
"\\x04" , // 4 4
"\\x05" , // 5 5
"\\x06" , // 6 6
"\\x07" , // 7 7
"\\x08" , // 8 8 - BACKSPACE
"\\t" , // 9 9 - TAB
"\\n" , // 10 a - LF
"\\x0b" , // 11 b
"\\x0c" , // 12 c
"\\r" , // 13 d - CR
"\\x0e" , // 14 e
"\\x0f" , // 15 f
"\\x10" , // 16 10
"\\x11" , // 17 11
"\\x12" , // 18 12
"\\x13" , // 19 13
"\\x14" , // 20 14
"\\x15" , // 21 15
"\\x16" , // 22 16
"\\x17" , // 23 17
"\\x18" , // 24 18
"\\x19" , // 25 19
"\\x1a" , // 26 1a
"\\x1b" , // 27 1b
"\\x1c" , // 28 1c
"\\x1d" , // 29 1d
"\\x1e" , // 30 1e
"\\x1f" , // 31 1f
" " , // 32 20 - SPACE
"!" , // 33 21 - !
"\\\"" , // 34 22 - "
"#" , // 35 23 - #
"$" , // 36 24 - $
"%" , // 37 25 - %
"&" , // 38 26 - &
"'" , // 39 27 - '
"(" , // 40 28 - (
")" , // 41 29 - )
"*" , // 42 2a - *
"+" , // 43 2b - +
"," , // 44 2c - ,
"-" , // 45 2d - -
"." , // 46 2e - .
"/" , // 47 2f - /
"0" , // 48 30 - 0
"1" , // 49 31 - 1
"2" , // 50 32 - 2
"3" , // 51 33 - 3
"4" , // 52 34 - 4
"5" , // 53 35 - 5
"6" , // 54 36 - 6
"7" , // 55 37 - 7
"8" , // 56 38 - 8
"9" , // 57 39 - 9
":" , // 58 3a - :
";" , // 59 3b - ;
"<" , // 60 3c - <
"=" , // 61 3d - =
">" , // 62 3e - >
"?" , // 63 3f - ?
"@" , // 64 40 - @
"A" , // 65 41 - A
"B" , // 66 42 - B
"C" , // 67 43 - C
"D" , // 68 44 - D
"E" , // 69 45 - E
"F" , // 70 46 - F
"G" , // 71 47 - G
"H" , // 72 48 - H
"I" , // 73 49 - I
"J" , // 74 4a - J
"K" , // 75 4b - K
"L" , // 76 4c - L
"M" , // 77 4d - M
"N" , // 78 4e - N
"O" , // 79 4f - O
"P" , // 80 50 - P
"Q" , // 81 51 - Q