Home | History | Annotate | Download | only in strings

Lines Matching refs:string

11 #include <string>
40 // Number -> string conversions ------------------------------------------------
42 BASE_EXPORT std::string IntToString(int value);
45 BASE_EXPORT std::string UintToString(unsigned value);
48 BASE_EXPORT std::string Int64ToString(int64_t value);
51 BASE_EXPORT std::string Uint64ToString(uint64_t value);
54 BASE_EXPORT std::string SizeTToString(size_t value);
58 // DoubleToString converts the double to a string format that ignores the
60 BASE_EXPORT std::string DoubleToString(double value);
62 // String -> number conversions ------------------------------------------------
64 // Perform a best-effort conversion of the input string to a numeric type,
71 // - Trailing characters in the string after parsing the number. |*output|
73 // - Leading whitespace in the string before parsing the number. |*output| will
75 // - No characters parseable as a number at the beginning of the string.
77 // - Empty string. |*output| will be set to 0.
100 // variants. This expects the input string to NOT be specific to the locale.
104 BASE_EXPORT bool StringToDouble(const std::string& input, double* output);
108 // Returns a hex string representation of a binary buffer. The returned hex
109 // string will be in upper case. This function does not check if |size| is
114 BASE_EXPORT std::string HexEncode(const void* bytes, size_t size);
124 // The string is not required to start with 0x.
135 // The string is not required to start with 0x.
142 BASE_EXPORT bool HexStringToBytes(const std::string& input,