Skip to content

Commit 4ab4dfa

Browse files
committed
feat: added Ascii::INFORMATION_SEPARATORS group
1 parent 82750aa commit 4ab4dfa

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

src/Ascii.php

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@
1111
*/
1212
enum Ascii: string
1313
{
14-
public const FILE_SEPARATOR = "\x1C";
15-
public const GROUP_SEPARATOR = "\x1D";
16-
public const NULL = "\x00";
17-
public const RECORD_SEPARATOR = "\x1E";
18-
public const UNIT_SEPARATOR = "\x1F";
19-
2014
/**
2115
* Separates different files (databases)
2216
*/
@@ -35,6 +29,26 @@ enum Ascii: string
3529
*/
3630
case UnitSeparator = self::UNIT_SEPARATOR;
3731

32+
#region groups of cases
33+
/**
34+
* Used to separate and qualify information in a logical sense
35+
*/
36+
public const INFORMATION_SEPARATORS = [
37+
self::FileSeparator,
38+
self::GroupSeparator,
39+
self::RecordSeparator,
40+
self::UnitSeparator,
41+
];
42+
#endregion
43+
44+
#region values of cases
45+
public const FILE_SEPARATOR = "\x1C";
46+
public const GROUP_SEPARATOR = "\x1D";
47+
public const NULL = "\x00";
48+
public const RECORD_SEPARATOR = "\x1E";
49+
public const UNIT_SEPARATOR = "\x1F";
50+
#endregion
51+
3852
/**
3953
* @see implode()
4054
*/

0 commit comments

Comments
 (0)