Skip to content

Commit f64ed52

Browse files
committedDec 14, 2017
do not use Config.USE_UNICODE_PROPERTIES in coderage list
1 parent 7ded22d commit f64ed52

File tree

3 files changed

+798
-808
lines changed

3 files changed

+798
-808
lines changed
 
+13-17
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,28 @@
11
/*
2-
* Permission is hereby granted, free of charge, to any person obtaining a copy of
3-
* this software and associated documentation files (the "Software"), to deal in
4-
* the Software without restriction, including without limitation the rights to
5-
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
2+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
3+
* this software and associated documentation files (the "Software"), to deal in
4+
* the Software without restriction, including without limitation the rights to
5+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
66
* of the Software, and to permit persons to whom the Software is furnished to do
77
* so, subject to the following conditions:
8-
*
8+
*
99
* The above copyright notice and this permission notice shall be included in all
1010
* copies or substantial portions of the Software.
11-
*
11+
*
1212
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
13+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1818
* SOFTWARE.
1919
*/
2020
package org.jcodings.unicode;
2121

22-
import org.jcodings.Config;
2322
import org.jcodings.unicode.UnicodeEncoding.CodeRangeEntry;
2423

2524
public class UnicodeProperties {
26-
static final CodeRangeEntry[]CodeRangeTable = Config.USE_UNICODE_PROPERTIES ?
27-
new CodeRangeEntry[] {
25+
static final CodeRangeEntry[]CodeRangeTable = new CodeRangeEntry[] {
2826
%{extcrs}
29-
} : new CodeRangeEntry[] {
30-
%{stdcrs}
31-
};
27+
};
3228
}

‎scripts/generate.rb

+1-3
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,7 @@ def generate_coderange_list
8989
end.flatten(1)
9090

9191
open("#{SRC_DIR}/unicode/UnicodeProperties.java", "wb") do |f| f <<
92-
open("UnicodePropertiesTemplate.java", "rb").read.
93-
sub(/%\{stdcrs\}/, "#{INDENT * 4}null").
94-
sub(/%\{extcrs\}/, out.map{|name, table| "#{INDENT * 4}" + "new CodeRangeEntry(\"#{name}\", \"CR_#{table}\")"}.join(",\n"))
92+
open("UnicodePropertiesTemplate.java", "rb").read.sub(/%\{extcrs\}/, out.map{|name, table| "#{INDENT * 2}" + "new CodeRangeEntry(\"#{name}\", \"CR_#{table}\")"}.join(",\n"))
9593
end
9694
end
9795

‎src/org/jcodings/unicode/UnicodeProperties.java

+784-788
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.