pub fn is_split_path(path: &[u8]) -> boolExpand description
Whether UnityPy’s load_file reads a path as the parts of a split file:
reSplit.match(path) (environment.py:25, :111-116), with reSplit
(.*?([^\/\\]+?))\.split\d+, a match at the start that need not reach
the end. So .split and a digit must follow at least one character that
is no / or \, and no \n (which . does not match) may come before
the last separator ahead of it. Python’s \d on a str pattern is
Py_UNICODE_ISDECIMAL (sre’s SRE_UNI_IS_DIGIT): a character with a
decimal digit value, which Unicode gives exactly the category Nd, read
from Python 3.11’s own table (crate::tables::nd_digit, Unicode 14.0),
so a name such as x.split² (No) or x.splitⅠ (Nl) is one file, as
UnityPy reads it (tests/fixtures/d/pystr.json records \d over every
code point). Linear in the path.