// Copyright 2013 Google Inc. All Rights Reserved. #ifndef WVCDM_CORE_STRING_CONVERSIONS_H_ #define WVCDM_CORE_STRING_CONVERSIONS_H_ #include #include #include #include namespace wvcdm { std::vector a2b_hex(const std::string& b); std::vector a2b_hex(const std::string& label, const std::string& b); std::string a2bs_hex(const std::string& b); std::string b2a_hex(const std::vector& b); std::string b2a_hex(const std::string& b); std::string Base64SafeEncode(const std::vector& bin_input); std::string Base64SafeEncodeNoPad(const std::vector& bin_input); std::vector Base64SafeDecode(const std::string& bin_input); std::string HexEncode(const uint8_t* bytes, unsigned size); std::string IntToString(int value); std::string UintToString(unsigned int value); int64_t htonll64(int64_t x); }; // namespace wvcdm #endif // WVCDM_CORE_STRING_CONVERSIONS_H_