mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
LibRegex: Annotate classes with export macro for hidden visibility
This fix demos the gradual opt-in migration process libraries can take to switch to explicit symbol exports via the FOO_API macros.
This commit is contained in:
parent
3dd2fbd041
commit
a3754a7bf1
Notes:
github-actions[bot]
2025-05-12 09:23:32 +00:00
Author: https://github.com/ayeteadoe
Commit: a3754a7bf1
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4667
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/alimpfard
6 changed files with 15 additions and 13 deletions
|
@ -32,7 +32,7 @@ struct Block {
|
|||
|
||||
static constexpr size_t const c_max_recursion = 5000;
|
||||
|
||||
struct RegexResult final {
|
||||
struct REGEX_API RegexResult final {
|
||||
bool success { false };
|
||||
size_t count { 0 };
|
||||
Vector<Match> matches;
|
||||
|
@ -44,10 +44,10 @@ struct RegexResult final {
|
|||
};
|
||||
|
||||
template<class Parser>
|
||||
class Regex;
|
||||
class REGEX_API Regex;
|
||||
|
||||
template<class Parser>
|
||||
class Matcher final {
|
||||
class REGEX_API Matcher final {
|
||||
|
||||
public:
|
||||
Matcher(Regex<Parser> const* pattern, Optional<typename ParserTraits<Parser>::OptionsType> regex_options = {})
|
||||
|
@ -78,7 +78,7 @@ private:
|
|||
};
|
||||
|
||||
template<class Parser>
|
||||
class Regex final {
|
||||
class REGEX_API Regex final {
|
||||
public:
|
||||
ByteString pattern_value;
|
||||
regex::Parser::Result parser_result;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue