1// Copyright 2013 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4//
5// This file defines utility functions for working with strings.
6//
7// The original source code is from:
8// http://src.chromium.org/viewvc/chrome/trunk/src/base/strings/string_util.h?revision=268754
9//
10// Modified to contain only DoReplaceStringPlaceholders() that works only with
11// std::string.
12
13#ifndef I18N_ADDRESSINPUT_UTIL_STRING_UTIL_H_
14#define I18N_ADDRESSINPUT_UTIL_STRING_UTIL_H_
15
16#include <string>
17#include <vector>
18
19namespace i18n {
20namespace addressinput {
21
22std::string DoReplaceStringPlaceholders(const std::string& format_string,
23                                        const std::vector<std::string>& subst);
24
25}  // addressinput
26}  // i18n
27
28#endif  // I18N_ADDRESSINPUT_UTIL_STRING_UTIL_H_
29