File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ fn parse_char_escape(line: &mut ScriptCharProvider) -> Option<char> {
195
195
/// This functionality is needed to avoid terminating delimited
196
196
/// sequences when a delimiter appears within a character class.
197
197
/// While at it, handle escaped characters for the sake of consistency.
198
- pub fn parse_character_class (
198
+ fn parse_character_class (
199
199
lines : & ScriptLineProvider ,
200
200
line : & mut ScriptCharProvider ,
201
201
) -> UResult < String > {
@@ -415,6 +415,12 @@ pub fn parse_transliteration(
415
415
mod tests {
416
416
use super :: * ;
417
417
418
+ fn make_providers ( input : & str ) -> ( ScriptLineProvider , ScriptCharProvider ) {
419
+ let lines = ScriptLineProvider :: new ( vec ! [ ] ) ; // Empty for tests
420
+ let line = ScriptCharProvider :: new ( input) ;
421
+ ( lines, line)
422
+ }
423
+
418
424
// parse_numeric_escape
419
425
#[ test]
420
426
fn test_compile_octal_escape ( ) {
@@ -764,12 +770,6 @@ mod tests {
764
770
}
765
771
766
772
// parse_regex
767
- fn make_providers ( input : & str ) -> ( ScriptLineProvider , ScriptCharProvider ) {
768
- let lines = ScriptLineProvider :: new ( vec ! [ ] ) ; // Empty for tests
769
- let line = ScriptCharProvider :: new ( input) ;
770
- ( lines, line)
771
- }
772
-
773
773
#[ test]
774
774
fn test_simple_regex ( ) {
775
775
let ( lines, mut line) = make_providers ( "/abc/" ) ;
You can’t perform that action at this time.
0 commit comments