Home | History | Annotate | Download | only in common

Lines Matching refs:string

8 #include <string>
34 PLAIN, // Just a plain string, no escaping necessary.
41 explicit SandboxSubstring(const std::string& value)
45 SandboxSubstring(const std::string& value, SandboxSubstringType type)
49 const std::string& value() { return value_; }
53 std::string value_;
59 // A map of variable name -> string to substitute in its place.
60 typedef base::hash_map<std::string, SandboxSubstring>
88 // Returns a string containing the sandbox profile commands necessary to allow
93 // The returned string contains embedded variables. The function fills in
102 // |sandbox_template| is a string which contains 2 entitites to operate on:
112 // sandbox template in cases where another string needs to be substituted at
118 // |substitutions| is a hash of "variable name" -> "string to substitute".
119 // Where the replacement string is tagged with information on how it is to be
120 // escaped e.g. used as part of a regex string or a literal.
128 std::string *final_sandbox_profile_str);
135 // Escape |src_utf8| for use in a plain string variable in a sandbox
138 static bool QuotePlainString(const std::string& src_utf8, std::string* dst);
152 static bool QuoteStringForRegex(const std::string& str_utf8,
153 std::string* dst);