| 121 | } |
| 122 | |
| 123 | void Int128::toString(int scale, unsigned length, char* to) const |
| 124 | { |
| 125 | string buffer; |
| 126 | toString(scale, buffer); |
| 127 | if (buffer.length() + 1 > length) |
| 128 | { |
| 129 | (Arg::Gds(isc_arith_except) << Arg::Gds(isc_string_truncation) << |
| 130 | Arg::Gds(isc_trunc_limits) << Arg::Num(length) << Arg::Num(buffer.length() + 1)).raise(); |
| 131 | } |
| 132 | buffer.copyTo(to, length); |
| 133 | } |
| 134 | |
| 135 | void Int128::toString(int scale, string& to) const |
| 136 | { |
no test coverage detected