Sha256: e81c1fe99f8c8ab21310168856a0ba9695eaa8b220c53b0b45281956f9020d50
Contents?: true
Size: 259 Bytes
Versions: 1
Compression:
Stored size: 259 Bytes
Contents
module ICU class UCharPointer < FFI::MemoryPointer def self.from_string(str) # not sure how this will work with other encodings str = str.encode("UTF-8") if str.respond_to? :encode super str.unpack("U*").pack("L*") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ffi-icu-0.0.1 | lib/ffi-icu/uchar.rb |