#ifndef SYNC_API_STRING_ORDINAL_H_
#define SYNC_API_STRING_ORDINAL_H_
#include "base/basictypes.h"
#include "sync/internal_api/public/base/ordinal.h"
namespace syncer {
struct StringOrdinalTraits {
static const uint8 kZeroDigit = 'a';
static const uint8 kMaxDigit = 'z';
static const size_t kMinLength = 1;
};
typedef Ordinal<StringOrdinalTraits> StringOrdinal;
COMPILE_ASSERT(StringOrdinal::kZeroDigit == 'a',
StringOrdinalHasCorrectZeroDigit);
COMPILE_ASSERT(StringOrdinal::kOneDigit == 'b',
StringOrdinalHasCorrectOneDigit);
COMPILE_ASSERT(StringOrdinal::kMidDigit == 'n',
StringOrdinalHasCorrectMidDigit);
COMPILE_ASSERT(StringOrdinal::kMaxDigit == 'z',
StringOrdinalHasCorrectMaxDigit);
COMPILE_ASSERT(StringOrdinal::kMidDigitValue == 13,
StringOrdinalHasCorrectMidDigitValue);
COMPILE_ASSERT(StringOrdinal::kMaxDigitValue == 25,
StringOrdinalHasCorrectMaxDigitValue);
COMPILE_ASSERT(StringOrdinal::kRadix == 26,
StringOrdinalHasCorrectRadix);
}
#endif