mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
d75fa80a7b
Provide wrappers in String and StringView. Add some tests for the implementations.
22 lines
416 B
C++
22 lines
416 B
C++
#pragma once
|
|
|
|
#include <AK/Forward.h>
|
|
|
|
namespace AK {
|
|
|
|
enum class CaseSensitivity {
|
|
CaseInsensitive,
|
|
CaseSensitive,
|
|
};
|
|
|
|
namespace StringUtils {
|
|
|
|
bool matches(const StringView& str, const StringView& mask, CaseSensitivity = CaseSensitivity::CaseInsensitive);
|
|
int convert_to_int(const StringView&, bool& ok);
|
|
unsigned convert_to_uint(const StringView&, bool& ok);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
using AK::CaseSensitivity;
|