21
21
import java .util .regex .Pattern ;
22
22
23
23
import com .apicatalog .jsonld .lang .LanguageTag .Extension ;
24
- import com .apicatalog .rdf .lang . RdfAlphabet ;
24
+ import com .apicatalog .rdf .nquads . NQuadsAlphabet ;
25
25
26
26
/**
27
27
* Language tags are used to help identify languages and are defined by
@@ -77,8 +77,8 @@ private static final LanguageTagParser create(final String languageTag, boolean
77
77
78
78
// must start with ALPHA and ends with ALPHANUM
79
79
if (stripped .length () == 0
80
- || RdfAlphabet .ASCII_ALPHA .negate ().test (stripped .codePointAt (0 ))
81
- || RdfAlphabet .ASCII_ALPHA_NUM .negate ().test (stripped .codePointAt (stripped .length () - 1 ))) {
80
+ || NQuadsAlphabet .ASCII_ALPHA .negate ().test (stripped .codePointAt (0 ))
81
+ || NQuadsAlphabet .ASCII_ALPHA_NUM .negate ().test (stripped .codePointAt (stripped .length () - 1 ))) {
82
82
return new LanguageTagParser (languageTag , null , verifierMode );
83
83
}
84
84
@@ -200,7 +200,7 @@ boolean acceptAlpha(int length, Consumer<String> consumer) {
200
200
}
201
201
202
202
boolean acceptAlpha (int min , int max , Consumer <String > consumer ) {
203
- return accept (min , max , RdfAlphabet .ASCII_ALPHA , consumer );
203
+ return accept (min , max , NQuadsAlphabet .ASCII_ALPHA , consumer );
204
204
}
205
205
206
206
boolean acceptDigit (int length ) {
@@ -212,11 +212,11 @@ boolean acceptDigit(int length, Consumer<String> consumer) {
212
212
}
213
213
214
214
boolean acceptDigit (int min , int max , Consumer <String > consumer ) {
215
- return accept (min , max , RdfAlphabet .ASCII_DIGIT , consumer );
215
+ return accept (min , max , NQuadsAlphabet .ASCII_DIGIT , consumer );
216
216
}
217
217
218
218
boolean acceptAlphaNun (int min , int max , Consumer <String > consumer ) {
219
- return accept (min , max , RdfAlphabet .ASCII_ALPHA_NUM , consumer );
219
+ return accept (min , max , NQuadsAlphabet .ASCII_ALPHA_NUM , consumer );
220
220
}
221
221
222
222
boolean accept (int min , int max , IntPredicate predicate , Consumer <String > consumer ) {
@@ -253,15 +253,15 @@ boolean accept(int length, Consumer<String> consumer) {
253
253
}
254
254
255
255
boolean alphaRange (int index , int length ) {
256
- return range (index , length , RdfAlphabet .ASCII_ALPHA );
256
+ return range (index , length , NQuadsAlphabet .ASCII_ALPHA );
257
257
}
258
258
259
259
boolean alphaNumRange (int index , int length ) {
260
- return range (index , length , RdfAlphabet .ASCII_ALPHA_NUM );
260
+ return range (index , length , NQuadsAlphabet .ASCII_ALPHA_NUM );
261
261
}
262
262
263
263
boolean digitRange (int index , int length ) {
264
- return range (index , length , RdfAlphabet .ASCII_DIGIT );
264
+ return range (index , length , NQuadsAlphabet .ASCII_DIGIT );
265
265
}
266
266
267
267
boolean range (int index , int length , IntPredicate predicate ) {
0 commit comments