Lines Matching defs:base
5 #include "base/string_number_conversions.h"
12 #include "base/logging.h"
13 #include "base/third_party/dmg_fp/dmg_fp.h"
14 #include "base/utf_string_conversions.h"
16 namespace base {
99 // Utility to convert a character to a digit in a given base
100 template<typename CHAR, int BASE, bool BASE_LTE_10> class BaseCharToDigit {
104 template<typename CHAR, int BASE> class BaseCharToDigit<CHAR, BASE, true> {
107 if (c >= '0' && c < '0' + BASE) {
115 // Specialization for bases where 10 < base <= 36
116 template<typename CHAR, int BASE> class BaseCharToDigit<CHAR, BASE, false> {
121 } else if (c >= 'a' && c < 'a' + BASE - 10) {
123 } else if (c >= 'A' && c < 'A' + BASE - 10) {
132 template<int BASE, typename CHAR> bool CharToDigit(CHAR c, uint8* digit) {
133 return BaseCharToDigit<CHAR, BASE, BASE <= 10>::Convert(c, digit);
166 // - constant kBase, the base in which to interpret the input
209 class Base {
246 class Positive : public Base<Positive> {
262 class Negative : public Base<Negative> {
279 template<typename ITERATOR, typename VALUE, int BASE>
290 static const int kBase = BASE;
543 } // namespace base