Page Speed Optimization Libraries
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Namespaces | Functions | Variables
charset_util.h File Reference
#include "pagespeed/kernel/base/string_util.h"

Go to the source code of this file.


 Unit-test framework for wget fetcher.


bool net_instaweb::StripUtf8Bom (StringPiece *contents)
const StringPiece net_instaweb::GetCharsetForBom (const StringPiece contents)


const char net_instaweb::kUtf8Charset [] = "utf-8"
 The charsets we understand. Currently only those that have BOMs below.
const char net_instaweb::kUtf16BigEndianCharset [] = "utf-16be"
const char net_instaweb::kUtf16LittleEndianCharset [] = "utf-16le"
const char net_instaweb::kUtf32BigEndianCharset [] = "utf-32be"
const char net_instaweb::kUtf32LittleEndianCharset [] = "utf-32le"
const char net_instaweb::kUtf8Bom [] = "\xEF\xBB\xBF"
 The Byte-Order-Mark (BOM) for the various UTF encodings.
const char net_instaweb::kUtf16BigEndianBom [] = "\xFE\xFF"
const char net_instaweb::kUtf16LittleEndianBom [] = "\xFF\xFE"
const char net_instaweb::kUtf32BigEndianBom [] = "\x00\x00\xFE\xFF"
const char net_instaweb::kUtf32LittleEndianBom [] = "\xFF\xFE\x00\x00"