Changeset 14934 in josm
- Timestamp:
- 2019-03-26T07:46:24+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/TagChecker.java
r14933 r14934 385 385 for (int i = 0; i < s.length(); i++) { 386 386 char c = s.charAt(i); 387 if (( IsAsciiControlChar(c) && !isNewLineChar(c)) || IsBidiControlChar(c))387 if ((isAsciiControlChar(c) && !isNewLineChar(c)) || isBidiControlChar(c)) 388 388 return true; 389 389 } … … 391 391 } 392 392 393 private static boolean IsAsciiControlChar(char c) {393 private static boolean isAsciiControlChar(char c) { 394 394 return c < 0x20 || c == 0x7F; 395 395 } … … 399 399 } 400 400 401 private static boolean IsBidiControlChar(char c) {401 private static boolean isBidiControlChar(char c) { 402 402 /* check for range 0x200c to 0x200f (ZWNJ, ZWJ, LRM, RLM) or 403 403 0x202a to 0x202e (LRE, RLE, PDF, LRO, RLO) */
Note:
See TracChangeset
for help on using the changeset viewer.