wordtriez 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/wordtriez.cc +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d703337bf6fdd17a5ac29691d7cc22bc0aa94c2
|
4
|
+
data.tar.gz: 0ae1078629cf2e13ddf365575c5b271f32de2e32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1356429e081fed8cdf8bc1cf893d9acc845e512c2a6a6bd444d180e0c9c15b2179b48aff350da11eb3f42b81f93a838d910c68c1f5218eeeb1ed19ef29917a50
|
7
|
+
data.tar.gz: c3eb416caf1b40b860c622300c81fae29430eeb576f1ae26bfca68189dbc3be812ee4a66f52a7e8784c3fe10cbaf5dfbd65dcce545e9873389c5ccc8b224e6fc
|
data/ext/wordtriez.cc
CHANGED
@@ -283,14 +283,14 @@ static VALUE hat_add_text(VALUE self, VALUE text, VALUE ngrams, VALUE suffix, VA
|
|
283
283
|
char* ctext = StringValueCStr(text);
|
284
284
|
size_t new_length = text_clean(ctext);
|
285
285
|
|
286
|
-
rb_str_resize(text, (long)new_length);
|
287
|
-
|
288
286
|
add_ngrams_with_suffix(p,
|
289
287
|
FIX2INT(ngrams),
|
290
288
|
ctext,
|
291
289
|
StringValueCStr(suffix),
|
292
290
|
RTEST(incr_existing_keys_only));
|
293
291
|
|
292
|
+
rb_str_resize(text, (long)new_length);
|
293
|
+
|
294
294
|
return self;
|
295
295
|
// rb_str_substr
|
296
296
|
}
|