// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // The original source code is from: // http://src.chromium.org/viewvc/chrome/trunk/src/base/strings/string_util.cc?revision=268754 // // Modified to contain only the DoReplaceStringPlaceholders() that works with // std::string. Replaced DCHECK() with assert() and removed offsets. #include "string_util.h" #include <cassert> #include <cstddef> #include <stdint.h> #include <string> #include <vector> namespace i18n { namespace addressinput { std::string DoReplaceStringPlaceholders(const std::string& format_string, const std::vector<std::string>& subst) { … } } // namespace addressinput } // namespace i18n