#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "third_party/blink/public/platform/web_icon_sizes_parser.h"
#include <algorithm>
#include "third_party/blink/public/platform/web_string.h"
#include "third_party/blink/renderer/platform/wtf/text/string_to_number.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
#include "ui/gfx/geometry/size.h"
namespace blink {
namespace {
static inline bool IsIntegerStart(UChar c) { … }
static bool IsWhitespace(UChar c) { … }
static bool IsNotWhitespace(UChar c) { … }
static bool IsNonDigit(UChar c) { … }
static inline wtf_size_t FindEndOfWord(const String& string, wtf_size_t start) { … }
static inline int PartialStringToInt(const String& string,
wtf_size_t start,
wtf_size_t end) { … }
}
WebVector<gfx::Size> WebIconSizesParser::ParseIconSizes(
const WebString& web_sizes_string) { … }
}