| 1307 | */ |
| 1308 | template<class string_type> |
| 1309 | void ToStringBase(string_type & result, uint b = 10) const |
| 1310 | { |
| 1311 | if( IsSign() ) |
| 1312 | { |
| 1313 | Int<value_size> temp(*this); |
| 1314 | temp.Abs(); |
| 1315 | temp.UInt<value_size>::ToStringBase(result, b, true); |
| 1316 | } |
| 1317 | else |
| 1318 | { |
| 1319 | UInt<value_size>::ToStringBase(result, b, false); |
| 1320 | } |
| 1321 | } |
| 1322 | |
| 1323 | /*! |
| 1324 | this method converts the value to a string with a base equal 'b' |