Lines Matching refs:child
35 Node* child = children[label];
36 if (child == nullptr) {
44 for (; i < child->prefix.length(); ++i) {
45 if (i > prefix_len || prefix[i] != child->prefix[i]) {
46 std::string parent_prefix = child->prefix.substr(0, i);
47 std::string child_prefix = child->prefix.substr(i);
49 child->prefix = child_prefix;
51 split_child->children[child_prefix[0]] = child;
57 return child->CreateChild(prefix.substr(i));
77 auto child = it->second;
79 unsigned int prefix_len = child->prefix.length();
81 if (i >= prefix_len || child->prefix[i] == '*') {
82 return child;
87 // child = subdirectory/*
89 child->prefix[i] == node::kPathSeparator) {
93 if (path[idx++] != child->prefix[i]) {
97 return child;