GitXplorerGitXplorer
a

encoding_literals

public
2 stars
2 forks
4 issues

Commits

List of commits on branch master.
Unverified
267f8ea9fd23741beaa1e3dcf4dab616d358b9e2

fix encoding of escaped strings

aanalogrelay committed 9 years ago
Unverified
a461ad1d56b275323018336deb3d6392db9075e1

add c-string variants and test for escape sequences (that fails)

aanalogrelay committed 9 years ago
Unverified
c331bd36b013e4bf1c358851ee97068094949488

add travis config

aanalogrelay committed 9 years ago
Unverified
2325777e53c8daa77cb2466b8980a3a2f487ee93

add a readme

aanalogrelay committed 9 years ago
Unverified
d1a9f9f658b6256f926052a63ec6efebcb4a3ddb

add license

aanalogrelay committed 9 years ago
Unverified
ea399d4a2d75bfe643e35c2cf31955ee96457994

initial commit

aanalogrelay committed 9 years ago

README

The README file for this repository.

UTF-16 literals for Rust

This crate provides a plugin that allows you to add UTF-16 string literals to your Rust code.

Example:

#![plugin(encoding_literals)]

pub fn something() {
    // The type of this variable will be [u8; N] where N is the length of the UTF-16 encoded sequence in bytes.
    let utf_literal = utf16!("This string will be a UTF-16 byte sequence");
}