diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-23 20:00:20 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-23 20:00:20 +0000 |
commit | 93d49d70b89b22ec46d0b00b7950297f64865d56 (patch) | |
tree | 3243e0209c738df0c18c2ba615667f757fcaec94 /base/string_escape.h | |
parent | a9f607e33a91604bc63bd8c846aefbda9bf0dfa9 (diff) | |
download | chromium_src-93d49d70b89b22ec46d0b00b7950297f64865d56.zip chromium_src-93d49d70b89b22ec46d0b00b7950297f64865d56.tar.gz chromium_src-93d49d70b89b22ec46d0b00b7950297f64865d56.tar.bz2 |
Move the json-related files into a separate json directory. This hopefully also
makes the naming of string_escape more clear (it's actually JSON-specific).
Move the files into the base namespace.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/316016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29934 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/string_escape.h')
-rw-r--r-- | base/string_escape.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/base/string_escape.h b/base/string_escape.h deleted file mode 100644 index 3f0bf3f..0000000 --- a/base/string_escape.h +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) 2006-2008 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. -// -// This file defines utility functions for escaping strings. - -#ifndef BASE_STRING_ESCAPE_H__ -#define BASE_STRING_ESCAPE_H__ - -#include <string> - -#include "base/string16.h" - -namespace string_escape { - -// Escape |str| appropriately for a JSON string litereal, _appending_ the -// result to |dst|. This will create unicode escape sequences (\uXXXX). -// If |put_in_quotes| is true, the result will be surrounded in double quotes. -// The outputted literal, when interpreted by the browser, should result in a -// javascript string that is identical and the same length as the input |str|. -void JsonDoubleQuote(const std::string& str, - bool put_in_quotes, - std::string* dst); - -void JsonDoubleQuote(const string16& str, - bool put_in_quotes, - std::string* dst); - - -} // namespace string_escape - -#endif // BASE_STRING_ESCAPE_H__ |