Module: Byk
- Defined in:
- lib/byk/safe.rb,
lib/byk/version.rb,
ext/byk/byk.c
Constant Summary collapse
- AZBUKA =
%w[а б в г д ђ е ж з и ј к л љ м н њ о п р с т ћ у ф х ц ч џ ш]
- AZBUKA_CAPS =
%W[А Б В Г Д Ђ Е Ж З И Ј К Л Љ М Н Њ О П Р С Т Ћ У Ф Х Ц Ч Џ Ш]
- ABECEDA =
%w[a b c č ć d dž đ e f g h i j k l lj m n nj o p r s š t u v z ž]
- ABECEDA_CAPS =
%W[A B C Č Ć D Dž Đ E F G H I J K L Lj M N Nj O P R S Š T U V Z Ž]
- VERSION =
"1.1.0"
Class Method Summary collapse
-
.to_ascii_latin(str) ⇒ String
Returns a copy of str with Serbian characters transliterated into ASCII Latin.
-
.to_ascii_latin!(str) ⇒ String
Performs transliteration of
Byk.to_ascii_latin
in place, returning str, whether any changes were made or not. -
.to_cyrillic(str) ⇒ String
Returns a copy of str with Latin characters transliterated into Serbian Cyrillic.
-
.to_cyrillic!(str) ⇒ String
Performs transliteration of
Byk.to_cyrillic
in place, returning str, whether any changes were made or not. -
.to_latin(str) ⇒ String
Returns a copy of str with Serbian Cyrillic characters transliterated into Latin.
-
.to_latin!(str) ⇒ String
Performs transliteration of
Byk.to_latin
in place, returning str, whether any changes were made or not.
Class Method Details
.to_ascii_latin(str) ⇒ String
Returns a copy of str with Serbian characters transliterated into ASCII Latin.
351 352 353 354 355 |
# File 'ext/byk/byk.c', line 351
static VALUE
rb_str_to_ascii_latin(VALUE self, VALUE str)
{
return str_to_srb(str, 2, 0);
}
|
.to_ascii_latin!(str) ⇒ String
Performs transliteration of Byk.to_ascii_latin
in place, returning str, whether any changes were made or not.
365 366 367 368 369 |
# File 'ext/byk/byk.c', line 365
static VALUE
rb_str_to_ascii_latin_bang(VALUE self, VALUE str)
{
return str_to_srb(str, 2, 1);
}
|
.to_cyrillic(str) ⇒ String
Returns a copy of str with Latin characters transliterated into Serbian Cyrillic.
295 296 297 298 299 |
# File 'ext/byk/byk.c', line 295
static VALUE
rb_str_to_cyrillic(VALUE self, VALUE str)
{
return str_to_srb(str, 0, 0);
}
|
.to_cyrillic!(str) ⇒ String
Performs transliteration of Byk.to_cyrillic
in place, returning str, whether any changes were made or not.
309 310 311 312 313 |
# File 'ext/byk/byk.c', line 309
static VALUE
rb_str_to_cyrillic_bang(VALUE self, VALUE str)
{
return str_to_srb(str, 0, 1);
}
|
.to_latin(str) ⇒ String
Returns a copy of str with Serbian Cyrillic characters transliterated into Latin.
323 324 325 326 327 |
# File 'ext/byk/byk.c', line 323
static VALUE
rb_str_to_latin(VALUE self, VALUE str)
{
return str_to_srb(str, 1, 0);
}
|
.to_latin!(str) ⇒ String
Performs transliteration of Byk.to_latin
in place, returning str, whether any changes were made or not.
337 338 339 340 341 |
# File 'ext/byk/byk.c', line 337
static VALUE
rb_str_to_latin_bang(VALUE self, VALUE str)
{
return str_to_srb(str, 1, 1);
}
|