unicode

Conversion from system default charset to utf-8 and vise versa. Working with national-named files on Windows. Support utf-8 regular expressions.
https://bitbucket.org/yar3333/haxe-unicode

To install, run:

haxelib install unicode 1.4.0 

See using Haxelib in Haxelib documentation for more information.

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.

Contributors
yar3333
Version
1.4.0
Published
2 years ago
License
LGPL

All libraries are free

Every month, more than thousand developers use haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on Github!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on Github