Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
cprabhu
parabix-devel
Commits
84fa6f0e
Commit
84fa6f0e
authored
4 years ago
by
aytang
Browse files
Options
Download
Email Patches
Plain Diff
adjusted output for when no matches for radical expression are found
parent
fd5bbe3b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
README-radicalgrep.md
README-radicalgrep.md
+1
-1
tools/radicalgrep/radicalgrep.cpp
tools/radicalgrep/radicalgrep.cpp
+1
-1
No files found.
README-radicalgrep.md
View file @
84fa6f0e
...
...
@@ -332,7 +332,7 @@ For inputs with more than one test files, filepaths are automatically shown. You
## Example 7: Runtime of the search
The
`-clk`
flag can be toggled to measure the runtime of a search. It returns the in seconds.
The
`-clk`
flag can be toggled to measure the runtime of a search. It returns the
time taken
in seconds.
Input: -clk -c auto 水_子_ ../../QA/radicaltest/testfiles/*
...
...
This diff is collapsed.
Click to expand it.
tools/radicalgrep/radicalgrep.cpp
View file @
84fa6f0e
...
...
@@ -109,7 +109,7 @@ int main(int argc, char* argv[])
const
bool
matchFound
=
grep
->
searchAllFiles
();
//Return if there have found any result, if yes, return true, else return false
//if there does not exist any results
if
(
!
matchFound
)
cout
<<
"Can not find the results!"
<<
endl
;
if
(
!
matchFound
)
cout
<<
"No matches are found for "
<<
input_radical
<<
endl
;
if
(
CLKCountingFlag
)
{
...
...
This diff is collapsed.
Click to expand it.
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