Home | History | Annotate | Download | only in syncable

Lines Matching refs:id

16 const Id kNullId;  // Currently == root.
18 ostream& operator<<(ostream& out, const Id& id) {
19 out << id.s_;
23 StringValue* Id::ToValue() const {
27 string Id::GetServerId() const {
35 Id Id::CreateFromServerId(const string& server_id) {
36 Id id;
38 id.s_ = "r";
40 id.s_ = string("s") + server_id;
41 return id;
44 Id Id::CreateFromClientString(const string& local_id) {
45 Id id;
47 id.s_ = "r";
49 id.s_ = string("c") + local_id;
50 return id;
53 Id Id::GetLexicographicSuccessor() const {
56 Id id = *this;
57 id.s_.push_back(0);
58 return id;
62 Id Id::GetLeastIdForLexicographicComparison() {
63 Id id;
64 id.s_.clear();
65 return id;