Page Speed Optimization Libraries  1.13.35.1
 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.

Namespaces

 net_instaweb
 Unit-test framework for wget fetcher.
 

Functions

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

Variables

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"