Skip to content

Commit 7f39b30

Browse files
committed
countfa v1.1
1 parent 8fcdbee commit 7f39b30

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ sequence in memory
88
* countlets has a new -a option, allowing to specify alphabet to prevent
99
loading entire sequence into memory (at the cost of speed for higher k)
1010
* countlets version bumped to v1.1
11+
* countfa now reads one char at a time, version bumped to v1.1
1112

1213
2019-04-26 Benjamin Jean-Marie Tremblay <benjmtremblay@gmail.com>
1314

src/countfa.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ using namespace std;
2626

2727
void usage() {
2828
printf(
29-
"countfa v1.0 Copyright (C) 2019 Benjamin Jean-Marie Tremblay \n"
29+
"countfa v1.1 Copyright (C) 2019 Benjamin Jean-Marie Tremblay \n"
3030
" \n"
3131
"Usage: coutfa -i [filename] \n"
3232
" cat [filename] | coutfa \n"
@@ -57,9 +57,7 @@ void do_countfa(istream &input) {
5757
}
5858

5959
if (at_name) cout << l;
60-
else {
61-
if (l != ' ' && l != '\n') ++counter;
62-
}
60+
else if (l != ' ' && l != '\n') ++counter;
6361

6462
}
6563

0 commit comments

Comments
 (0)