charlock_holmes 0.6.9.2 → 0.6.9.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/ext/charlock_holmes/transliterator.cpp +4 -2
- data/lib/charlock_holmes/version.rb +1 -1
- metadata +2 -2
data/Gemfile.lock
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
#include "common.h"
|
2
2
|
#undef UChar
|
3
3
|
|
4
|
+
#include <string>
|
4
5
|
#include <unicode/translit.h>
|
5
6
|
|
6
7
|
extern "C" {
|
@@ -63,7 +64,8 @@ static VALUE rb_transliterator_transliterate(VALUE self, VALUE rb_txt, VALUE rb_
|
|
63
64
|
|
64
65
|
u_txt = new UnicodeString(txt, txt_len);
|
65
66
|
trans->transliterate(*u_txt);
|
66
|
-
|
67
|
+
StringByteSink<std::string> sink(&result);
|
68
|
+
u_txt->toUTF8(sink);
|
67
69
|
|
68
70
|
delete u_txt;
|
69
71
|
delete trans;
|
@@ -83,4 +85,4 @@ void _init_charlock_transliterator() {
|
|
83
85
|
rb_define_singleton_method(rb_cTransliterator, "transliterate", (VALUE(*)(...))rb_transliterator_transliterate, 2);
|
84
86
|
}
|
85
87
|
|
86
|
-
}
|
88
|
+
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: charlock_holmes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.9.
|
4
|
+
version: 0.6.9.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-
|
13
|
+
date: 2013-04-02 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake-compiler
|