proxygen
StructuredHeadersUtilities.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2004-present, Facebook, Inc.
3  * All rights reserved.
4  *
5  * This source code is licensed under the BSD-style license found in the
6  * LICENSE file in the root directory of this source tree. An additional grant
7  * of patent rights can be found in the PATENTS file in the same directory.
8  *
9  */
10 #include <string>
12 
13 #pragma once
14 
15 namespace proxygen {
16 namespace StructuredHeaders {
17 
18 bool isLcAlpha(char c);
19 
20 bool isValidIdentifierChar(char c);
21 
23 
24 bool isValidStringChar(char c);
25 
26 bool isValidIdentifier(const std::string& s);
27 
28 bool isValidString(const std::string& s);
29 
31 
32 bool itemTypeMatchesContent(const StructuredHeaderItem& input);
33 
34 std::string decodeBase64(const std::string& encoded);
35 
37 
38 }
39 }
bool isValidIdentifier(const std::string &s)
bool itemTypeMatchesContent(const StructuredHeaderItem &input)
std::string encodeBase64(const std::string &input)
std::string decodeBase64(const std::string &encoded)
const char * string
Definition: Conv.cpp:212
bool isValidEncodedBinaryContent(const std::string &s)
static set< string > s
bool isValidString(const std::string &s)
char c