File tree 3 files changed +4
-3
lines changed
3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
build
2
+ /.vs
Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ namespace onmt
234
234
bool cur_letter = false ;
235
235
bool cur_number = false ;
236
236
// skip special characters and BOM
237
- if (v > 32 and v != 0xFEFF )
237
+ if (v > 32 && v != 0xFEFF )
238
238
{
239
239
if (substitutes.find (c)!=substitutes.end ())
240
240
c = substitutes.at (c);
@@ -311,7 +311,7 @@ namespace onmt
311
311
if (_joiner_annotate) {
312
312
if (_joiner_new) addjoiner = true ;
313
313
else {
314
- if (!letter or prev_alphabet == " placeholder" )
314
+ if (!letter || prev_alphabet == " placeholder" )
315
315
token += _joiner;
316
316
else
317
317
c = _joiner + c;
Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ namespace onmt
169
169
{
170
170
if (!u)
171
171
return false ;
172
- return (u >= 9 and u <= 13 ) or _find_codepoint (u, unidata_Separator);
172
+ return (u >= 9 && u <= 13 ) || _find_codepoint (u, unidata_Separator);
173
173
}
174
174
175
175
bool is_letter (code_point_t u, _type_letter &tl)
You can’t perform that action at this time.
0 commit comments