Lines Matching refs:string
7 #include <string>
52 static bool BadKeyMessage(const std::string& name, std::string* error) {
62 std::string* error) {
71 std::string* error) {
79 std::string key(base::StringToLowerASCII(message_it.key()));
82 std::string value;
98 const std::string& app_locale, std::string* error) {
132 bool MessageBundle::GetMessageValue(const std::string& key,
134 std::string* value,
135 std::string* error) const {
163 const std::string& name_key,
165 std::string* error) const {
179 const std::string& content_key(it.key());
188 std::string content;
201 std::string* message,
202 std::string* error) const {
210 bool MessageBundle::ReplaceMessages(std::string* text,
211 std::string* error) const {
220 const SubstitutionMap& dictionary, std::string* text, std::string* error) {
226 const std::string& var_begin_delimiter,
227 const std::string& var_end_delimiter,
228 std::string* message,
229 std::string* error) {
230 std::string::size_type beg_index = 0;
231 const std::string::size_type var_begin_delimiter_size =
242 std::string::size_type end_index =
248 const std::string& var_name =
263 std::string value = it->second;
277 bool MessageBundle::IsValidName(const std::string& name) {
281 std::string::const_iterator it = name.begin();
293 std::string MessageBundle::GetL10nMessage(const std::string& name) const {
298 std::string MessageBundle::GetL10nMessage(const std::string& name,
306 return std::string();
335 L10nMessagesMap* GetL10nMessagesMap(const std::string& extension_id) {
344 void EraseL10nMessagesMap(const std::string& extension_id) {