summaryrefslogtreecommitdiff
path: root/lib/plugins
diff options
context:
space:
mode:
authorChristopher Smith <chris@jalakai.co.uk>2010-04-04 20:24:01 +0200
committerAndreas Gohr <andi@splitbrain.org>2010-04-04 20:24:01 +0200
commit70e083cec45ef4a738ae0b3f20af8e4f288a7dfa (patch)
treed5264af231ee546313eb7698735abc656f767bba /lib/plugins
parent550505f51d2efbdf154dea82b69bcfb758b63785 (diff)
downloadrpg-70e083cec45ef4a738ae0b3f20af8e4f288a7dfa.tar.gz
rpg-70e083cec45ef4a738ae0b3f20af8e4f288a7dfa.tar.bz2
class for safely encoding filenames
This class tries to satisfy the following requirements: * all ASCII alphanumeric chars in the input should stay the same ASCII alphanumeric chars in the output * the resulting string should be as short as possible * the operation needs to be reversable without any data loss * the resulting ASCII string should be case insensitive * there should be no restriction on the input length * the whole UTF-8 range should be allowed using it creates a way to store UTF-8 in filenames even if the underlying filesystem does not support UTF-8. It is also pretty robust when files are moved between various filesystems and it creates shorter filenames than the currently used urlencoding.
Diffstat (limited to 'lib/plugins')
0 files changed, 0 insertions, 0 deletions