#ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_WTF_TEXT_STRING_TO_NUMBER_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_WTF_TEXT_STRING_TO_NUMBER_H_
#include "third_party/blink/renderer/platform/wtf/text/number_parsing_options.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_uchar.h"
#include "third_party/blink/renderer/platform/wtf/wtf_export.h"
namespace WTF {
class StringView;
enum class NumberParsingResult { … };
WTF_EXPORT int CharactersToInt(const LChar*,
size_t,
NumberParsingOptions,
bool* ok);
WTF_EXPORT int CharactersToInt(const UChar*,
size_t,
NumberParsingOptions,
bool* ok);
WTF_EXPORT int CharactersToInt(const StringView&,
NumberParsingOptions,
bool* ok);
WTF_EXPORT unsigned HexCharactersToUInt(const LChar*,
size_t,
NumberParsingOptions,
bool* ok);
WTF_EXPORT unsigned HexCharactersToUInt(const UChar*,
size_t,
NumberParsingOptions,
bool* ok);
WTF_EXPORT uint64_t HexCharactersToUInt64(const UChar*,
size_t,
NumberParsingOptions,
bool* ok);
WTF_EXPORT uint64_t HexCharactersToUInt64(const LChar*,
size_t,
NumberParsingOptions,
bool* ok);
WTF_EXPORT unsigned CharactersToUInt(const LChar*,
size_t,
NumberParsingOptions,
bool* ok);
WTF_EXPORT unsigned CharactersToUInt(const UChar*,
size_t,
NumberParsingOptions,
bool* ok);
WTF_EXPORT unsigned CharactersToUInt(const LChar*,
size_t,
NumberParsingOptions,
NumberParsingResult*);
WTF_EXPORT unsigned CharactersToUInt(const UChar*,
size_t,
NumberParsingOptions,
NumberParsingResult*);
WTF_EXPORT int64_t CharactersToInt64(const LChar*,
size_t,
NumberParsingOptions,
bool* ok);
WTF_EXPORT int64_t CharactersToInt64(const UChar*,
size_t,
NumberParsingOptions,
bool* ok);
WTF_EXPORT uint64_t CharactersToUInt64(const LChar*,
size_t,
NumberParsingOptions,
bool* ok);
WTF_EXPORT uint64_t CharactersToUInt64(const UChar*,
size_t,
NumberParsingOptions,
bool* ok);
WTF_EXPORT double CharactersToDouble(const LChar*, size_t, bool* ok);
WTF_EXPORT double CharactersToDouble(const UChar*, size_t, bool* ok);
WTF_EXPORT double CharactersToDouble(const LChar*,
size_t length,
size_t& parsed_length);
WTF_EXPORT double CharactersToDouble(const UChar*,
size_t length,
size_t& parsed_length);
WTF_EXPORT float CharactersToFloat(const LChar*, size_t, bool* ok);
WTF_EXPORT float CharactersToFloat(const UChar*, size_t, bool* ok);
WTF_EXPORT float CharactersToFloat(const LChar*,
size_t length,
size_t& parsed_length);
WTF_EXPORT float CharactersToFloat(const UChar*,
size_t length,
size_t& parsed_length);
}
CharactersToInt;
CharactersToUInt;
CharactersToInt64;
CharactersToUInt64;
CharactersToDouble;
CharactersToFloat;
#endif