Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yaml-cpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
yaml-cpp
Commits
519d33fe
Commit
519d33fe
authored
Aug 18, 2016
by
Joseph Langley
Committed by
Jesse Beder
Aug 18, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add YAML_CPP_API decorator to RegEx class and friend operators. (#407)
parent
f0b15cd6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
src/regex_yaml.h
+7
-5
No files found.
src/regex_yaml.h
View file @
519d33fe
...
@@ -10,6 +10,8 @@
...
@@ -10,6 +10,8 @@
#include <string>
#include <string>
#include <vector>
#include <vector>
#include "yaml-cpp/dll.h"
namespace
YAML
{
namespace
YAML
{
class
Stream
;
class
Stream
;
...
@@ -26,7 +28,7 @@ enum REGEX_OP {
...
@@ -26,7 +28,7 @@ enum REGEX_OP {
// simplified regular expressions
// simplified regular expressions
// . Only straightforward matches (no repeated characters)
// . Only straightforward matches (no repeated characters)
// . Only matches from start of string
// . Only matches from start of string
class
RegEx
{
class
YAML_CPP_API
RegEx
{
public
:
public
:
RegEx
();
RegEx
();
RegEx
(
char
ch
);
RegEx
(
char
ch
);
...
@@ -34,10 +36,10 @@ class RegEx {
...
@@ -34,10 +36,10 @@ class RegEx {
RegEx
(
const
std
::
string
&
str
,
REGEX_OP
op
=
REGEX_SEQ
);
RegEx
(
const
std
::
string
&
str
,
REGEX_OP
op
=
REGEX_SEQ
);
~
RegEx
()
{}
~
RegEx
()
{}
friend
RegEx
operator
!
(
const
RegEx
&
ex
);
friend
YAML_CPP_API
RegEx
operator
!
(
const
RegEx
&
ex
);
friend
RegEx
operator
||
(
const
RegEx
&
ex1
,
const
RegEx
&
ex2
);
friend
YAML_CPP_API
RegEx
operator
||
(
const
RegEx
&
ex1
,
const
RegEx
&
ex2
);
friend
RegEx
operator
&&
(
const
RegEx
&
ex1
,
const
RegEx
&
ex2
);
friend
YAML_CPP_API
RegEx
operator
&&
(
const
RegEx
&
ex1
,
const
RegEx
&
ex2
);
friend
RegEx
operator
+
(
const
RegEx
&
ex1
,
const
RegEx
&
ex2
);
friend
YAML_CPP_API
RegEx
operator
+
(
const
RegEx
&
ex1
,
const
RegEx
&
ex2
);
bool
Matches
(
char
ch
)
const
;
bool
Matches
(
char
ch
)
const
;
bool
Matches
(
const
std
::
string
&
str
)
const
;
bool
Matches
(
const
std
::
string
&
str
)
const
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment