Lines Matching refs:string
19 #include <string>
29 virtual std::string LookupVariable(const std::string& var) = 0;
32 /// A tokenized string that contains variable references.
35 /// @return The evaluated string with variable expanded using value found in
37 std::string Evaluate(Env* env) const;
39 /// @return The string with variables not expanded.
40 std::string Unparse() const;
50 std::string Serialize() const;
54 typedef std::vector<std::pair<std::string, TokenType> > TokenList;
60 explicit Rule(const std::string& name) : name_(name) {}
62 const std::string& name() const { return name_; }
64 void AddBinding(const std::string& key, const EvalString& val);
66 static bool IsReservedBinding(const std::string& var);
68 const EvalString* GetBinding(const std::string& key) const;
74 std::string name_;
75 typedef std::map<std::string, EvalString> Bindings;
86 virtual std::string LookupVariable(const std::string& var);
89 const Rule* LookupRule(const std::string& rule_name);
90 const Rule* LookupRuleCurrentScope(const std::string& rule_name);
91 const std::map<std::string, const Rule*>& GetRules() const;
93 void AddBinding(const std::string& key, const std::string& val);
100 std::string LookupWithFallback(const std::string& var, const EvalString* eval,
104 std::map<std::string, std::string> bindings_;
105 std::map<std::string, const Rule*> rules_;