Felix Schurk
93356b39c3
add initial bulk run from pre-commit over all files
2024-07-29 22:34:51 +02:00
Tomas Babej
0bc92d6115
meta: Adjust copyright headers
2021-09-05 12:02:07 -04:00
Rosen Penev
3cafb5257e
clang-tidy: use = default
...
Found with modernize-use-equals-default
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-04-23 00:15:06 -04:00
Tomas Babej
9017cd6e53
doc: Update copyright to 2021
2021-01-02 02:48:22 -05:00
Paul Beckingham
702af00435
Revert "[clang-tidy] Remove redundant const"
...
This reverts commit 55d103c491
.
2020-12-05 16:18:37 -05:00
Rosen Penev
55d103c491
[clang-tidy] Remove redundant const
...
Found with readability-const-return-type
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-12-05 15:03:43 -05:00
Tomas Babej
a09f9d48ab
Update copyright to 2020
2020-11-21 12:27:05 -05:00
Tomas Babej
8066e4e6e2
meta: Update copyright year
2019-01-01 08:46:21 -05:00
Simon Ruderich
e817dfc800
Always use https:// link for opensource.org
...
It was already used in a few places, make this consistent.
2018-03-04 14:53:07 +01:00
Paul Beckingham
cae3f06b7d
Lexer: Migrated to unicodeLatinDigit
2018-01-25 01:08:26 -05:00
Paul Beckingham
adc965e762
Lexer: Migrated to unicodeLatinAlpha
2018-01-25 00:59:05 -05:00
Paul Beckingham
e199bc98b3
Lexer: Migrated to unicodeHexDigit
2018-01-25 00:53:47 -05:00
Paul Beckingham
cac258ef72
Lexer: Migrated to unicodeWhitespace
2018-01-25 00:47:23 -05:00
Paul Beckingham
0de169bb10
Copyright 2018
2017-12-31 19:22:07 -05:00
Paul Beckingham
a50e65a134
Copyright update
2017-01-01 12:30:04 -05:00
Paul Beckingham
641d232dea
Copyright: Updated to 2016
2015-12-31 15:06:43 -05:00
Paul Beckingham
182b5427cd
Lexer: Migrated trim(), trimLeft() and trimRight() from text to Lexer
2015-10-30 11:17:23 -04:00
Paul Beckingham
51def4b12b
Lexer: Migrated commify, ucFirst and lowerCase from text to Lexer
2015-10-30 10:57:14 -04:00
Paul Beckingham
d4abae0f70
Lexer: Removed ::isoEnabled, which belongs in ISO8601{d,p}
2015-10-04 11:11:48 -04:00
Paul Beckingham
e4132f6a02
CLI2: Expand DOM references in single-token values
2015-09-07 11:49:55 -04:00
Paul Beckingham
0c7e731b0d
Lexer: Integrated ::commonLength
...
- Uses std::string::size_type for all string lengths, offsets.
- Rewrote ::isLiteral to be simpler.
- Added support for abbreviated DOM refs.
- Obeys rc.abbreviation.minimum, indirectly.
- Added tests.
2015-07-27 00:31:15 -04:00
Paul Beckingham
a9b701ae6d
Lexer:: Implemented ::commonLength with offsets, for embedded parsing
2015-07-27 00:04:00 -04:00
Paul Beckingham
244c81a647
Lexer: Implemented ::commonLength for word root comparison
2015-07-26 23:52:17 -04:00
Paul Beckingham
f5792a03fb
Lexer: Captures minimumMatchLength for abbreviated attribute matching
2015-07-26 22:58:02 -04:00
Paul Beckingham
d0c4326af3
Lexer: Upgraded attributes vector to a map of name to type
2015-07-26 12:22:02 -04:00
Paul Beckingham
52d2bbd11a
Lexer: Implemented ::isOneOf using a std::map as input
2015-07-26 12:09:40 -04:00
Paul Beckingham
391d527328
Lexer: Added end-boundary sensitivity to ::isLiteral and ::isOneOf
2015-07-26 10:48:26 -04:00
Paul Beckingham
3e74aa51e2
Lexer: Added 'endBoundary' requirement to ::isUUID
2015-07-25 17:59:40 -04:00
Paul Beckingham
c769891b76
Lexer: Implemented ::isInteger to help parsing.
2015-07-25 17:54:55 -04:00
Paul Beckingham
37e31e8e0b
Lexer: Implemented ::isOneOf, to help with parsing
2015-07-25 17:34:51 -04:00
Paul Beckingham
9394b96202
Lexer: Implemented ::isLiteral, to help with parsing
2015-07-25 17:34:01 -04:00
Paul Beckingham
fed3b815a0
Lexer: Dead code removal
2015-07-17 14:59:42 -04:00
Paul Beckingham
d0e4f4ca10
Lexer: Implemented ::decomposePattern
2015-07-11 17:09:29 -04:00
Paul Beckingham
1bef45ff47
Lexer: Added ::decomposeSubstitution and more flexible ::dequote
...
- ::dequote can now be given a string of valid quote characters, which defaults
to '".
- ::decomposeSubstitution properly parses the /from/to/g construct allowing for
escaped characters (\/).
- The 'g' at the end of a substitution is now considered to be a string of flag
characters, which may contain 'g'. No other flag values are currently
supported.
2015-07-11 16:40:52 -04:00
Paul Beckingham
642f378462
Lexer:: Implemented ::isHardBoundary to detect filter tokens
2015-07-11 13:12:09 -04:00
Paul Beckingham
1fed8c55f1
Lexer: Collapsed two ::isString calls into one
2015-07-06 16:40:18 -04:00
Paul Beckingham
7a6d546a0d
Lexer:: Added polymorphic ::readWord for quoteѕ and unquoted strings
2015-07-06 16:37:46 -04:00
Paul Beckingham
d82da280cb
Lexer: Implemented ::readWord
...
- Lexer::readWord is a general-purpose text parser, for finding plain words and
quoted strings. It supports \uNNNN and U+NNNN unicode sequences, and general
escapes, \t, \', \" etc.
2015-07-06 15:32:12 -04:00
Paul Beckingham
81599071e7
Lexer: Implemented ::decomposePair
2015-07-06 11:28:39 -04:00
Paul Beckingham
1836ac29e2
Lexer: Removed expermental code, didn't help
2015-07-04 15:03:28 -04:00
Paul Beckingham
3b99559216
Lexer: Added standalone token support
...
- Added default ctor.
- Added ::token method for classifying whole tokens.
- Stubbed token classifier methods.
2015-07-04 11:38:09 -04:00
Paul Beckingham
ad17ad82dd
Lexer: Removed obsolete method def
2015-07-04 10:34:16 -04:00
Paul Beckingham
f33da18789
Lexer: Removed ::isList and Lexer::Type::list - not needed
2015-07-01 18:04:21 -04:00
Paul Beckingham
b090c6bccf
Lexer: Removed unnecessary ::ambiguity method
2015-07-01 16:18:28 -04:00
Paul Beckingham
86ed232348
Lexer: Added ::wasQuoted to determine original quote state
2015-06-28 12:35:06 -04:00
Paul Beckingham
d9bcbdee0a
Lexer: Added ::isContiguous for word-like matching
2015-06-22 21:34:57 -04:00
Paul Beckingham
f4a7c50f1a
Lexer: Added ::isSet to recognize numerical sets
...
- A numerical set is a list of numbers: 1,2,3
Or a range of numbers: 5-10
Or a combination of both: 1,2,3,5-10
2015-06-19 18:28:58 -07:00
Paul Beckingham
c6dbdf87a4
Lexer: Migrated isalpha to Lexer::isAlpha
2015-04-16 23:24:17 -04:00
Paul Beckingham
237d932ff9
Lexer
...
- Improved ::isIdentifier, ::isUUID and ::isDOM.
2015-03-01 23:54:45 -05:00
Paul Beckingham
8791c0a921
Lexer
...
- Migrated old noSpaces() function into Lexer::isOneWord.
2015-02-22 18:23:26 -05:00