release 2.8 - src-highlite.git - src-highlite

index : src-highlite.git
src-highlite
summary refs log tree commit diff
path: root/src/check-regexp.cpp
diff options
context:
space:
mode:
authorLorenzo Bettini <bettini@dsi.unifi.it>2007年09月18日 13:21:11 +0000
committerLorenzo Bettini <bettini@dsi.unifi.it>2007年09月18日 13:21:11 +0000
commit3b66a4df70cab6b25e410841bef6fd64d839ca5b (patch)
treea30b2e8cdbde1928d77bdbe36add08843fcf4eb7 /src/check-regexp.cpp
parente9ea18fdc4f4f57b9ab8c9a4c6c182b0a1919b07 (diff)
downloadsrc-highlite-3b66a4df70cab6b25e410841bef6fd64d839ca5b.tar.gz
release 2.8rel_2_8
Diffstat (limited to 'src/check-regexp.cpp')
-rw-r--r--src/check-regexp.cpp 6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/check-regexp.cpp b/src/check-regexp.cpp
index 1808381..26eacbc 100644
--- a/src/check-regexp.cpp
+++ b/src/check-regexp.cpp
@@ -3,7 +3,7 @@
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@@ -82,8 +82,10 @@ int main(int argc, char * argv[]) {
flags = boost::match_default;
cout << "\nsearching : " << tomatch << endl;
- cout << "for the regexp : " << regex << endl;
+ cout << "for the regexp : " << regex << endl;
+ cout << "num of subexps : " << regex.mark_count() << endl;
+
int num_of_matches = 0;
while (boost::regex_search(start, end, what, regex, flags)) {
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月11日 22:40:27 +0000

AltStyle によって変換されたページ (->オリジナル) /