unicode 1.4.0

Conversion from system default charset to utf-8 and vise versa. Working with national-named files on Windows. Support utf-8 regular expressions.

Released 2015-10-25.

To install, run:

haxelib install unicode 1.4.0

See using Haxelib in Haxelib documentation for more information.

Maintaineryar3333
Websitehttps://bitbucket.org/yar3333/haxe-unicode
Current version1.4.0
StatisticsInstalled 37 times
LicenseLGPL
Tags localization, neko, utf-8, utf8

README.md

unicode

Unicode-related library for neko target:

  • convert strings between OEM and UTF-8 encodings;
  • working with national-named files;
  • UTF-8 support for regular expressions

unicode.UnicodeStringTools

Static methods to convert from OEM to UTF-8 and vise versa.

function oemToUtf8(s)
function utf8ToOem(s)

unicode.FileSystem

Working with a national-named files (file paths in UTF-8). On Windows loads NDLL with system calls, on *nix just call sys.FileSystem methods.

function createDirectory(path)
function exists(path)
function readDirectory(path)
function isDirectory(path)
function rename(src, dest)
function fullPath(path)
function stat(path)
function deleteFile(path)
function deleteDirectory(path)

unicode.File

Working with a national-named files (file paths in UTF-8). On Windows loads NDLL with system calls, on *nix just call sys.io.File methods.

function getContent(filePath)
function saveContent(filePath, text)
function copy(srcFilePath, destFilePath)

unicode.EReg

UTF-8 regular expressions compatible to standard EReg class. Load NDLL and use system calls to PCRE library.