Skip to content

Commit 38b3137

Browse files
committed
fix ranges
1 parent 63dd56d commit 38b3137

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

src/JavaCharacter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ object JavaCharacter {
1919
}).mkString("\n, ") + "\n]"
2020

2121
def main(args: Array[String]) {
22-
val l = (0 to 200000).toList
22+
val l = (0 to 2000000).toList
2323
val m = classOf[java.lang.Character].getMethod(args(0), classOf[Int])
2424
val r = letterGroupsToHaskell[Int](x => m.invoke(null, x.asInstanceOf[java.lang.Integer]).asInstanceOf[Boolean], l)
2525
println(r)

src/Language/Java/Character/IsSpaceChar.hs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@ isSpaceCharSet ::
5656
Set a
5757
isSpaceCharSet =
5858
let r = [
59-
[65536..200000]
59+
[32]
60+
, [160]
61+
, [5760]
62+
, [6158]
63+
, [8192..8203]
64+
, [8232..8233]
65+
, [8239]
66+
, [8287]
67+
, [12288]
6068
]
6169
in S.fromList . concat $ r

src/Language/Java/Character/IsValidCodePoint.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ isValidCodePointSet ::
5656
Set a
5757
isValidCodePointSet =
5858
let r = [
59-
[0..200000]
59+
[0..1114111]
6060
]
6161
in S.fromList . concat $ r

0 commit comments

Comments
 (0)