File tree Expand file tree Collapse file tree 6 files changed +41
-5
lines changed Expand file tree Collapse file tree 6 files changed +41
-5
lines changed Original file line number Diff line number Diff line change
1
+ // Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
2
+ // for details. All rights reserved. Use of this source code is governed by a
3
+ // BSD-style license that can be found in the LICENSE file.
4
+
5
+ /// Character `%` .
6
+ const int $percent = 0x25 ;
7
+
8
+ /// Character `-` .
9
+ const int $dash = 0x2d ;
10
+
11
+ /// Character `.` .
12
+ const int $dot = 0x2e ;
13
+
14
+ /// Character `0` .
15
+ const int $0 = 0x30 ;
16
+
17
+ /// Character `9` .
18
+ const int $9 = 0x39 ;
19
+
20
+ /// Character `A` .
21
+ const int $A = 0x41 ;
22
+
23
+ /// Character `_` .
24
+ const int $underscore = 0x5f ;
25
+
26
+ /// Character `a` .
27
+ const int $a = 0x61 ;
28
+
29
+ /// Character `f` .
30
+ const int $f = 0x66 ;
31
+
32
+ /// Character `z` .
33
+ const int $z = 0x7a ;
34
+
35
+ /// Character `~` .
36
+ const int $tilde = 0x7e ;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ library convert.hex.encoder;
7
7
import 'dart:convert' ;
8
8
import 'dart:typed_data' ;
9
9
10
- import 'package:charcode/ascii .dart' ;
10
+ import '../charcodes .dart' ;
11
11
12
12
/// The canonical instance of [HexEncoder] .
13
13
const hexEncoder = HexEncoder ._();
Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ library convert.percent.decoder;
6
6
7
7
import 'dart:convert' ;
8
8
9
- import 'package:charcode/ascii.dart' ;
10
9
import 'package:typed_data/typed_data.dart' ;
11
10
11
+ import '../charcodes.dart' ;
12
12
import '../utils.dart' ;
13
13
14
14
/// The canonical instance of [PercentDecoder] .
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ library convert.percent.encoder;
6
6
7
7
import 'dart:convert' ;
8
8
9
- import 'package:charcode/ascii .dart' ;
9
+ import '../charcodes .dart' ;
10
10
11
11
/// The canonical instance of [PercentEncoder] .
12
12
const percentEncoder = PercentEncoder ._();
Original file line number Diff line number Diff line change 4
4
5
5
library convert.utils;
6
6
7
- import 'package:charcode/ascii .dart' ;
7
+ import 'charcodes .dart' ;
8
8
9
9
/// Returns the digit (0 through 15) corresponding to the hexadecimal code unit
10
10
/// at index [i] in [codeUnits] .
Original file line number Diff line number Diff line change @@ -7,9 +7,9 @@ environment:
7
7
sdk : ' >=2.12.0-0 <3.0.0'
8
8
9
9
dependencies :
10
- charcode : ^1.2.0-nullsafety.3
11
10
typed_data : ^1.3.0-nullsafety.5
12
11
13
12
dev_dependencies :
13
+ charcode : ^1.2.0-nullsafety.3
14
14
pedantic : ^1.10.0-nullsafety.3
15
15
test : ^1.16.0-nullsafety.9
You can’t perform that action at this time.
0 commit comments