Skip to content

Commit 9e87be4

Browse files
committed
Add generate_mbstring_dict.php
Forgot to git add it previously.
1 parent 1584352 commit 9e87be4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
if (!extension_loaded('mbstring')) {
4+
echo "Skipping mbstring dictionary generation\n";
5+
return;
6+
}
7+
8+
$dict = "";
9+
foreach (mb_list_encodings() as $encoding) {
10+
$dict .= "\"" . $encoding . ",\"\n";
11+
}
12+
file_put_contents(__DIR__ . "/dict/mbstring", $dict);

0 commit comments

Comments
 (0)