File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 7
7
/**
8
8
* @see https://datatracker.ietf.org/doc/html/rfc20
9
9
*
10
- * @todo upgrade to PHP 8.2 and move values to cases
10
+ * @todo upgrade to PHP 8.2, move values to cases and move ` values of cases` region under `groups of cases` region
11
11
*/
12
12
enum Ascii: string
13
13
{
14
+ #region values of cases
14
15
public const FILE_SEPARATOR = "\x1C" ;
15
16
public const GROUP_SEPARATOR = "\x1D" ;
16
17
public const NULL = "\x00" ;
17
18
public const RECORD_SEPARATOR = "\x1E" ;
18
19
public const UNIT_SEPARATOR = "\x1F" ;
20
+ #endregion
19
21
20
22
/**
21
23
* Separates different files (databases)
@@ -35,6 +37,18 @@ enum Ascii: string
35
37
*/
36
38
case UnitSeparator = self ::UNIT_SEPARATOR ;
37
39
40
+ #region groups of cases
41
+ /**
42
+ * Used to separate and qualify information in a logical sense
43
+ */
44
+ public const INFORMATION_SEPARATORS = [
45
+ self ::FileSeparator,
46
+ self ::GroupSeparator,
47
+ self ::RecordSeparator,
48
+ self ::UnitSeparator,
49
+ ];
50
+ #endregion
51
+
38
52
/**
39
53
* @see implode()
40
54
*/
You can’t perform that action at this time.
0 commit comments