Lines Matching refs:id
17 ostream& operator<<(ostream& out, const Id& id) {
18 out << id.s_;
22 base::StringValue* Id::ToValue() const {
26 string Id::GetServerId() const {
34 Id Id::CreateFromServerId(const string& server_id) {
35 Id id;
37 id.s_ = "r";
39 id.s_ = string("s") + server_id;
40 return id;
43 Id Id::CreateFromClientString(const string& local_id) {
44 Id id;
46 id.s_ = "r";
48 id.s_ = string("c") + local_id;
49 return id;
52 Id Id::GetLexicographicSuccessor() const {
55 Id id = *this;
56 id.s_.push_back(0);
57 return id;
61 Id Id::GetLeastIdForLexicographicComparison() {
62 Id id;
63 id.s_.clear();
64 return id;
67 Id GetNullId() {
68 return Id(); // Currently == root.