@@ -59,7 +59,6 @@ defmodule Unicode.Guards do
5959 defguard is_currency_symbol ( codepoint )
6060 when is_integer ( codepoint ) and match? ( codepoint , "[[:Sc:]]" )
6161
62-
6362 @ doc """
6463 Guards whether a UTF8 codepoint is a whitespace symbol
6564 character.
@@ -69,7 +68,7 @@ defmodule Unicode.Guards do
6968
7069 """
7170 defguard is_whitespace ( codepoint )
72- when is_integer ( codepoint ) and match? ( codepoint , "[[\u0009 -\u000d ][:Zs:]]" )
71+ when is_integer ( codepoint ) and match? ( codepoint , "[[\\ u0009-\ \ u000d][:Zs:]]" )
7372
7473 @ doc """
7574 Guards whether a UTF8 codepoint is a unicode separator symbol
@@ -79,7 +78,7 @@ defmodule Unicode.Guards do
7978
8079 """
8180 defguard is_separator ( codepoint )
82- when is_integer ( codepoint ) and match? ( codepoint , "[[:Zs:]]" )
81+ when is_integer ( codepoint ) and match? ( codepoint , "[[:Zs:]]" )
8382
8483 @ doc """
8584 Guards whether a UTF8 codepoint is a unicode quote symbol
@@ -92,7 +91,7 @@ defmodule Unicode.Guards do
9291
9392 """
9493 defguard is_quote_mark ( codepoint )
95- when is_integer ( codepoint ) and match? ( codepoint , "[[:QuoteMark:]]" )
94+ when is_integer ( codepoint ) and match? ( codepoint , "[[:QuoteMark:]]" )
9695
9796 @ doc """
9897 Guards whether a UTF8 codepoint is a unicode left quote symbol
@@ -102,7 +101,7 @@ defmodule Unicode.Guards do
102101
103102 """
104103 defguard is_quote_mark_left ( codepoint )
105- when is_integer ( codepoint ) and match? ( codepoint , "[[:QuoteMarkLeft:]]" )
104+ when is_integer ( codepoint ) and match? ( codepoint , "[[:QuoteMarkLeft:]]" )
106105
107106 @ doc """
108107 Guards whether a UTF8 codepoint is a unicode right quote symbol
@@ -112,7 +111,7 @@ defmodule Unicode.Guards do
112111
113112 """
114113 defguard is_quote_mark_right ( codepoint )
115- when is_integer ( codepoint ) and match? ( codepoint , "[[:QuoteMarkRight:]]" )
114+ when is_integer ( codepoint ) and match? ( codepoint , "[[:QuoteMarkRight:]]" )
116115
117116 @ doc """
118117 Guards whether a UTF8 codepoint is a unicode quote symbol that can
@@ -122,7 +121,7 @@ defmodule Unicode.Guards do
122121
123122 """
124123 defguard is_quote_mark_ambidextrous ( codepoint )
125- when is_integer ( codepoint ) and match? ( codepoint , "[[:QuoteMarkAmbidextrous:]]" )
124+ when is_integer ( codepoint ) and match? ( codepoint , "[[:QuoteMarkAmbidextrous:]]" )
126125
127126 @ doc """
128127 Guards whether a UTF8 codepoint is a unicode quote symbol that is
@@ -132,7 +131,7 @@ defmodule Unicode.Guards do
132131
133132 """
134133 defguard is_quote_mark_single ( codepoint )
135- when is_integer ( codepoint ) and match? ( codepoint , "[[:QuoteMarkSingle:]]" )
134+ when is_integer ( codepoint ) and match? ( codepoint , "[[:QuoteMarkSingle:]]" )
136135
137136 @ doc """
138137 Guards whether a UTF8 codepoint is a unicode quote symbol that is
@@ -142,7 +141,7 @@ defmodule Unicode.Guards do
142141
143142 """
144143 defguard is_quote_mark_double ( codepoint )
145- when is_integer ( codepoint ) and match? ( codepoint , "[[:QuoteMarkDouble:]]" )
144+ when is_integer ( codepoint ) and match? ( codepoint , "[[:QuoteMarkDouble:]]" )
146145
147146 @ doc """
148147 Guards whether a UTF8 codepoint is a printable.
@@ -152,7 +151,7 @@ defmodule Unicode.Guards do
152151
153152 """
154153 defguard is_printable ( codepoint )
155- when is_integer ( codepoint ) and match? ( codepoint , "[[:printable:]]" )
154+ when is_integer ( codepoint ) and match? ( codepoint , "[[:printable:]]" )
156155
157156 @ doc """
158157 Guards whether a UTF8 codepoint is a visible.
@@ -165,6 +164,5 @@ defmodule Unicode.Guards do
165164
166165 """
167166 defguard is_visible ( codepoint )
168- when is_integer ( codepoint ) and match? ( codepoint , "[[:visible:]]" )
169-
167+ when is_integer ( codepoint ) and match? ( codepoint , "[[:visible:]]" )
170168end
0 commit comments