lib/ffi-icu/uchar.rb in ffi-icu-0.4.1 vs lib/ffi-icu/uchar.rb in ffi-icu-0.4.2

- old
+ new

@@ -41,8 +41,12 @@ wstring = read_array_of_uint16(length) wstring.pack("U*") end + def length_in_uchars + size / type_size + end + end # UCharPointer end # ICU