Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
33aed2c
commit 7566c8f
Showing
286 changed files
with
55,434 additions
and
55,434 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<additionalHeaders> | ||
<javadoc_style> | ||
<firstLine>/*</firstLine> | ||
<beforeEachLine> * </beforeEachLine> | ||
<endLine> */</endLine> | ||
<allowBlankLines>true</allowBlankLines> | ||
<isMultiline>false</isMultiline> | ||
<firstLineDetectionPattern>(\s|\t)*/\*.*$</firstLineDetectionPattern> | ||
<lastLineDetectionPattern>.*\*/(\s|\t)*$</lastLineDetectionPattern> | ||
</javadoc_style> | ||
</additionalHeaders> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<additionalHeaders> | ||
<javadoc_style> | ||
<firstLine>/*</firstLine> | ||
<beforeEachLine> * </beforeEachLine> | ||
<endLine> */</endLine> | ||
<allowBlankLines>true</allowBlankLines> | ||
<isMultiline>false</isMultiline> | ||
<firstLineDetectionPattern>(\s|\t)*/\*.*$</firstLineDetectionPattern> | ||
<lastLineDetectionPattern>.*\*/(\s|\t)*$</lastLineDetectionPattern> | ||
</javadoc_style> | ||
</additionalHeaders> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
Copyright (C) 2013-2017 NTT DATA Corporation | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
either express or implied. See the License for the specific language | ||
governing permissions and limitations under the License. | ||
Copyright (C) 2013-2017 NTT DATA Corporation | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
either express or implied. See the License for the specific language | ||
governing permissions and limitations under the License. |
Large diffs are not rendered by default.
Oops, something went wrong.
94 changes: 47 additions & 47 deletions
94
...x0201/src/main/java/org/terasoluna/gfw/common/codepoints/catalog/JIS_X_0201_Katakana.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,47 @@ | ||
/* | ||
* Copyright (C) 2013-2017 NTT DATA Corporation | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
* either express or implied. See the License for the specific language | ||
* governing permissions and limitations under the License. | ||
*/ | ||
package org.terasoluna.gfw.common.codepoints.catalog; | ||
|
||
import org.terasoluna.gfw.common.codepoints.CodePoints; | ||
|
||
/** | ||
* Code points which consist of JIS X 0201's Katakana (a.k.a Halfwidth-Kana). Note that this codepoints include '「', '」', '、', | ||
* '・'. | ||
* @since 5.1.0 | ||
*/ | ||
public class JIS_X_0201_Katakana extends CodePoints { | ||
/** | ||
* Constructor | ||
*/ | ||
public JIS_X_0201_Katakana() { | ||
super(0xFF61 /* 。 */, 0xFF62 /* 「 */, 0xFF63 /* 」 */, 0xFF64 /* 、 */, | ||
0xFF65 /* ・ */, 0xFF66 /* ヲ */, 0xFF67 /* ァ */, 0xFF68 /* ィ */, | ||
0xFF69 /* ゥ */, 0xFF6A /* ェ */, 0xFF6B /* ォ */, 0xFF6C /* ャ */, | ||
0xFF6D /* ュ */, 0xFF6E /* ョ */, 0xFF6F /* ッ */, 0xFF70 /* ー */, | ||
0xFF71 /* ア */, 0xFF72 /* イ */, 0xFF73 /* ウ */, 0xFF74 /* エ */, | ||
0xFF75 /* オ */, 0xFF76 /* カ */, 0xFF77 /* キ */, 0xFF78 /* ク */, | ||
0xFF79 /* ケ */, 0xFF7A /* コ */, 0xFF7B /* サ */, 0xFF7C /* シ */, | ||
0xFF7D /* ス */, 0xFF7E /* セ */, 0xFF7F /* ソ */, 0xFF80 /* タ */, | ||
0xFF81 /* チ */, 0xFF82 /* ツ */, 0xFF83 /* テ */, 0xFF84 /* ト */, | ||
0xFF85 /* ナ */, 0xFF86 /* ニ */, 0xFF87 /* ヌ */, 0xFF88 /* ネ */, | ||
0xFF89 /* ノ */, 0xFF8A /* ハ */, 0xFF8B /* ヒ */, 0xFF8C /* フ */, | ||
0xFF8D /* ヘ */, 0xFF8E /* ホ */, 0xFF8F /* マ */, 0xFF90 /* ミ */, | ||
0xFF91 /* ム */, 0xFF92 /* メ */, 0xFF93 /* モ */, 0xFF94 /* ヤ */, | ||
0xFF95 /* ユ */, 0xFF96 /* ヨ */, 0xFF97 /* ラ */, 0xFF98 /* リ */, | ||
0xFF99 /* ル */, 0xFF9A /* レ */, 0xFF9B /* ロ */, 0xFF9C /* ワ */, | ||
0xFF9D /* ン */, 0xFF9E /* ゙ */, 0xFF9F /* ゚ */); | ||
} | ||
} | ||
/* | ||
* Copyright (C) 2013-2017 NTT DATA Corporation | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
* either express or implied. See the License for the specific language | ||
* governing permissions and limitations under the License. | ||
*/ | ||
package org.terasoluna.gfw.common.codepoints.catalog; | ||
|
||
import org.terasoluna.gfw.common.codepoints.CodePoints; | ||
|
||
/** | ||
* Code points which consist of JIS X 0201's Katakana (a.k.a Halfwidth-Kana). Note that this codepoints include '「', '」', '、', | ||
* '・'. | ||
* @since 5.1.0 | ||
*/ | ||
public class JIS_X_0201_Katakana extends CodePoints { | ||
/** | ||
* Constructor | ||
*/ | ||
public JIS_X_0201_Katakana() { | ||
super(0xFF61 /* 。 */, 0xFF62 /* 「 */, 0xFF63 /* 」 */, 0xFF64 /* 、 */, | ||
0xFF65 /* ・ */, 0xFF66 /* ヲ */, 0xFF67 /* ァ */, 0xFF68 /* ィ */, | ||
0xFF69 /* ゥ */, 0xFF6A /* ェ */, 0xFF6B /* ォ */, 0xFF6C /* ャ */, | ||
0xFF6D /* ュ */, 0xFF6E /* ョ */, 0xFF6F /* ッ */, 0xFF70 /* ー */, | ||
0xFF71 /* ア */, 0xFF72 /* イ */, 0xFF73 /* ウ */, 0xFF74 /* エ */, | ||
0xFF75 /* オ */, 0xFF76 /* カ */, 0xFF77 /* キ */, 0xFF78 /* ク */, | ||
0xFF79 /* ケ */, 0xFF7A /* コ */, 0xFF7B /* サ */, 0xFF7C /* シ */, | ||
0xFF7D /* ス */, 0xFF7E /* セ */, 0xFF7F /* ソ */, 0xFF80 /* タ */, | ||
0xFF81 /* チ */, 0xFF82 /* ツ */, 0xFF83 /* テ */, 0xFF84 /* ト */, | ||
0xFF85 /* ナ */, 0xFF86 /* ニ */, 0xFF87 /* ヌ */, 0xFF88 /* ネ */, | ||
0xFF89 /* ノ */, 0xFF8A /* ハ */, 0xFF8B /* ヒ */, 0xFF8C /* フ */, | ||
0xFF8D /* ヘ */, 0xFF8E /* ホ */, 0xFF8F /* マ */, 0xFF90 /* ミ */, | ||
0xFF91 /* ム */, 0xFF92 /* メ */, 0xFF93 /* モ */, 0xFF94 /* ヤ */, | ||
0xFF95 /* ユ */, 0xFF96 /* ヨ */, 0xFF97 /* ラ */, 0xFF98 /* リ */, | ||
0xFF99 /* ル */, 0xFF9A /* レ */, 0xFF9B /* ロ */, 0xFF9C /* ワ */, | ||
0xFF9D /* ン */, 0xFF9E /* ゙ */, 0xFF9F /* ゚ */); | ||
} | ||
} |
110 changes: 55 additions & 55 deletions
110
...1/src/main/java/org/terasoluna/gfw/common/codepoints/catalog/JIS_X_0201_LatinLetters.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,55 @@ | ||
/* | ||
* Copyright (C) 2013-2017 NTT DATA Corporation | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
* either express or implied. See the License for the specific language | ||
* governing permissions and limitations under the License. | ||
*/ | ||
package org.terasoluna.gfw.common.codepoints.catalog; | ||
|
||
import org.terasoluna.gfw.common.codepoints.CodePoints; | ||
|
||
/** | ||
* Code points which consist of JIS X 0201's Latin letters. | ||
* @since 5.1.0 | ||
*/ | ||
public final class JIS_X_0201_LatinLetters extends CodePoints { | ||
|
||
/** | ||
* Constructor. | ||
*/ | ||
public JIS_X_0201_LatinLetters() { | ||
super(0x0020 /* */, 0x0021 /* ! */, 0x0022 /* " */, 0x0023 /* # */, | ||
0x0024 /* $ */, 0x0025 /* % */, 0x0026 /* & */, 0x0027 /* ' */, | ||
0x0028 /* ( */, 0x0029 /* ) */, 0x002A /* * */, 0x002B /* + */, | ||
0x002C /* , */, 0x002D /* - */, 0x002E /* . */, 0x002F /* / */, | ||
0x0030 /* 0 */, 0x0031 /* 1 */, 0x0032 /* 2 */, 0x0033 /* 3 */, | ||
0x0034 /* 4 */, 0x0035 /* 5 */, 0x0036 /* 6 */, 0x0037 /* 7 */, | ||
0x0038 /* 8 */, 0x0039 /* 9 */, 0x003A /* : */, 0x003B /* ; */, | ||
0x003C /* < */, 0x003D /* = */, 0x003E /* > */, 0x003F /* ? */, | ||
0x0040 /* @ */, 0x0041 /* A */, 0x0042 /* B */, 0x0043 /* C */, | ||
0x0044 /* D */, 0x0045 /* E */, 0x0046 /* F */, 0x0047 /* G */, | ||
0x0048 /* H */, 0x0049 /* I */, 0x004A /* J */, 0x004B /* K */, | ||
0x004C /* L */, 0x004D /* M */, 0x004E /* N */, 0x004F /* O */, | ||
0x0050 /* P */, 0x0051 /* Q */, 0x0052 /* R */, 0x0053 /* S */, | ||
0x0054 /* T */, 0x0055 /* U */, 0x0056 /* V */, 0x0057 /* W */, | ||
0x0058 /* X */, 0x0059 /* Y */, 0x005A /* Z */, 0x005B /* [ */, | ||
0x00A5 /* ¥ */, 0x005D /* ] */, 0x005E /* ^ */, 0x005F /* _ */, | ||
0x0060 /* ` */, 0x0061 /* a */, 0x0062 /* b */, 0x0063 /* c */, | ||
0x0064 /* d */, 0x0065 /* e */, 0x0066 /* f */, 0x0067 /* g */, | ||
0x0068 /* h */, 0x0069 /* i */, 0x006A /* j */, 0x006B /* k */, | ||
0x006C /* l */, 0x006D /* m */, 0x006E /* n */, 0x006F /* o */, | ||
0x0070 /* p */, 0x0071 /* q */, 0x0072 /* r */, 0x0073 /* s */, | ||
0x0074 /* t */, 0x0075 /* u */, 0x0076 /* v */, 0x0077 /* w */, | ||
0x0078 /* x */, 0x0079 /* y */, 0x007A /* z */, 0x007B /* { */, | ||
0x007C /* | */, 0x007D /* } */, 0x203E /* ‾ */); | ||
} | ||
} | ||
/* | ||
* Copyright (C) 2013-2017 NTT DATA Corporation | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
* either express or implied. See the License for the specific language | ||
* governing permissions and limitations under the License. | ||
*/ | ||
package org.terasoluna.gfw.common.codepoints.catalog; | ||
|
||
import org.terasoluna.gfw.common.codepoints.CodePoints; | ||
|
||
/** | ||
* Code points which consist of JIS X 0201's Latin letters. | ||
* @since 5.1.0 | ||
*/ | ||
public final class JIS_X_0201_LatinLetters extends CodePoints { | ||
|
||
/** | ||
* Constructor. | ||
*/ | ||
public JIS_X_0201_LatinLetters() { | ||
super(0x0020 /* */, 0x0021 /* ! */, 0x0022 /* " */, 0x0023 /* # */, | ||
0x0024 /* $ */, 0x0025 /* % */, 0x0026 /* & */, 0x0027 /* ' */, | ||
0x0028 /* ( */, 0x0029 /* ) */, 0x002A /* * */, 0x002B /* + */, | ||
0x002C /* , */, 0x002D /* - */, 0x002E /* . */, 0x002F /* / */, | ||
0x0030 /* 0 */, 0x0031 /* 1 */, 0x0032 /* 2 */, 0x0033 /* 3 */, | ||
0x0034 /* 4 */, 0x0035 /* 5 */, 0x0036 /* 6 */, 0x0037 /* 7 */, | ||
0x0038 /* 8 */, 0x0039 /* 9 */, 0x003A /* : */, 0x003B /* ; */, | ||
0x003C /* < */, 0x003D /* = */, 0x003E /* > */, 0x003F /* ? */, | ||
0x0040 /* @ */, 0x0041 /* A */, 0x0042 /* B */, 0x0043 /* C */, | ||
0x0044 /* D */, 0x0045 /* E */, 0x0046 /* F */, 0x0047 /* G */, | ||
0x0048 /* H */, 0x0049 /* I */, 0x004A /* J */, 0x004B /* K */, | ||
0x004C /* L */, 0x004D /* M */, 0x004E /* N */, 0x004F /* O */, | ||
0x0050 /* P */, 0x0051 /* Q */, 0x0052 /* R */, 0x0053 /* S */, | ||
0x0054 /* T */, 0x0055 /* U */, 0x0056 /* V */, 0x0057 /* W */, | ||
0x0058 /* X */, 0x0059 /* Y */, 0x005A /* Z */, 0x005B /* [ */, | ||
0x00A5 /* ¥ */, 0x005D /* ] */, 0x005E /* ^ */, 0x005F /* _ */, | ||
0x0060 /* ` */, 0x0061 /* a */, 0x0062 /* b */, 0x0063 /* c */, | ||
0x0064 /* d */, 0x0065 /* e */, 0x0066 /* f */, 0x0067 /* g */, | ||
0x0068 /* h */, 0x0069 /* i */, 0x006A /* j */, 0x006B /* k */, | ||
0x006C /* l */, 0x006D /* m */, 0x006E /* n */, 0x006F /* o */, | ||
0x0070 /* p */, 0x0071 /* q */, 0x0072 /* r */, 0x0073 /* s */, | ||
0x0074 /* t */, 0x0075 /* u */, 0x0076 /* v */, 0x0077 /* w */, | ||
0x0078 /* x */, 0x0079 /* y */, 0x007A /* z */, 0x007B /* { */, | ||
0x007C /* | */, 0x007D /* } */, 0x203E /* ‾ */); | ||
} | ||
} |
76 changes: 38 additions & 38 deletions
76
...1/src/test/java/org/terasoluna/gfw/common/codepoints/catalog/JIS_X_0201_KatakanaTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,38 @@ | ||
/* | ||
* Copyright (C) 2013-2017 NTT DATA Corporation | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
* either express or implied. See the License for the specific language | ||
* governing permissions and limitations under the License. | ||
*/ | ||
package org.terasoluna.gfw.common.codepoints.catalog; | ||
|
||
import static org.hamcrest.CoreMatchers.is; | ||
import static org.junit.Assert.assertThat; | ||
|
||
import org.junit.Test; | ||
import org.terasoluna.gfw.common.codepoints.CodePoints; | ||
|
||
public class JIS_X_0201_KatakanaTest { | ||
public Class<? extends CodePoints> clazz = JIS_X_0201_Katakana.class; | ||
|
||
@Test | ||
public void testIsValid() { | ||
CodePoints codePoints = CodePoints.of(clazz); | ||
assertThat(codePoints.containsAll("ハローワールド"), is(true)); | ||
} | ||
|
||
@Test | ||
public void testIsInValid() { | ||
CodePoints codePoints = CodePoints.of(clazz); | ||
assertThat(codePoints.containsAll("ハローワールド"), is(false)); | ||
} | ||
} | ||
/* | ||
* Copyright (C) 2013-2017 NTT DATA Corporation | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
* either express or implied. See the License for the specific language | ||
* governing permissions and limitations under the License. | ||
*/ | ||
package org.terasoluna.gfw.common.codepoints.catalog; | ||
|
||
import static org.hamcrest.CoreMatchers.is; | ||
import static org.junit.Assert.assertThat; | ||
|
||
import org.junit.Test; | ||
import org.terasoluna.gfw.common.codepoints.CodePoints; | ||
|
||
public class JIS_X_0201_KatakanaTest { | ||
public Class<? extends CodePoints> clazz = JIS_X_0201_Katakana.class; | ||
|
||
@Test | ||
public void testIsValid() { | ||
CodePoints codePoints = CodePoints.of(clazz); | ||
assertThat(codePoints.containsAll("ハローワールド"), is(true)); | ||
} | ||
|
||
@Test | ||
public void testIsInValid() { | ||
CodePoints codePoints = CodePoints.of(clazz); | ||
assertThat(codePoints.containsAll("ハローワールド"), is(false)); | ||
} | ||
} |
Oops, something went wrong.