Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
gherkin.lexer.Tr Maven / Gradle / Ivy
// line 1 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.java.rl"
package gherkin.lexer;
import java.io.UnsupportedEncodingException;
import java.util.List;
import java.util.ArrayList;
import java.util.regex.Pattern;
import gherkin.lexer.Lexer;
import gherkin.lexer.Listener;
import gherkin.lexer.LexingError;
public class Tr implements Lexer {
// line 150 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.java.rl"
private final Listener listener;
public Tr(Listener listener) {
this.listener = listener;
}
// line 26 "java/src/main/java/gherkin/lexer/Tr.java"
private static byte[] init__lexer_actions_0()
{
return new byte [] {
0, 1, 0, 1, 1, 1, 2, 1, 3, 1, 4, 1,
5, 1, 6, 1, 7, 1, 8, 1, 9, 1, 10, 1,
11, 1, 12, 1, 13, 1, 16, 1, 17, 1, 18, 1,
19, 1, 20, 1, 21, 1, 22, 1, 23, 2, 2, 18,
2, 3, 4, 2, 13, 0, 2, 14, 15, 2, 17, 0,
2, 17, 1, 2, 17, 16, 2, 17, 19, 2, 18, 6,
2, 18, 7, 2, 18, 8, 2, 18, 9, 2, 18, 10,
2, 18, 16, 2, 20, 21, 2, 22, 0, 2, 22, 1,
2, 22, 16, 2, 22, 19, 3, 4, 14, 15, 3, 5,
14, 15, 3, 11, 14, 15, 3, 12, 14, 15, 3, 13,
14, 15, 3, 14, 15, 18, 3, 17, 0, 11, 3, 17,
14, 15, 4, 2, 14, 15, 18, 4, 3, 4, 14, 15,
4, 17, 0, 14, 15, 5, 17, 0, 11, 14, 15
};
}
private static final byte _lexer_actions[] = init__lexer_actions_0();
private static short[] init__lexer_key_offsets_0()
{
return new short [] {
0, 0, 20, 21, 23, 24, 25, 26, 27, 28, 29, 30,
31, 32, 39, 41, 43, 45, 47, 49, 51, 53, 55, 74,
93, 94, 95, 97, 99, 104, 109, 114, 119, 123, 127, 129,
130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141,
142, 143, 144, 145, 147, 149, 154, 161, 166, 167, 168, 169,
170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181,
182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193,
194, 195, 211, 213, 215, 217, 219, 221, 223, 225, 227, 229,
231, 233, 235, 237, 239, 241, 243, 245, 247, 249, 251, 253,
255, 257, 259, 261, 263, 265, 267, 269, 271, 273, 275, 277,
279, 281, 283, 285, 287, 289, 291, 293, 295, 297, 299, 301,
303, 305, 307, 309, 311, 313, 315, 317, 319, 322, 324, 326,
328, 330, 332, 334, 336, 338, 340, 342, 343, 344, 345, 346,
347, 348, 349, 350, 351, 352, 353, 354, 356, 357, 358, 359,
360, 361, 362, 363, 364, 365, 366, 367, 368, 384, 386, 388,
390, 392, 394, 396, 398, 400, 402, 404, 406, 408, 410, 412,
414, 416, 418, 420, 422, 424, 426, 428, 430, 432, 434, 436,
438, 440, 442, 444, 446, 448, 450, 452, 454, 456, 458, 460,
462, 464, 466, 468, 470, 472, 474, 476, 478, 480, 482, 484,
486, 488, 490, 492, 494, 495, 496, 513, 515, 517, 519, 521,
523, 525, 527, 529, 531, 533, 535, 537, 539, 541, 543, 545,
547, 549, 551, 553, 555, 557, 559, 561, 563, 565, 567, 569,
571, 573, 575, 577, 579, 581, 583, 585, 587, 589, 591, 593,
595, 597, 599, 601, 603, 605, 607, 609, 611, 613, 615, 617,
619, 621, 623, 625, 627, 629, 631, 633, 635, 638, 640, 642,
644, 646, 648, 650, 652, 654, 656, 658, 659, 663, 669, 672,
674, 680, 699, 700, 701, 702, 703, 704, 705, 706, 707, 717,
719, 722, 724, 726, 728, 730, 732, 734, 736, 738, 740, 742,
744, 746, 748, 750, 752, 754, 756, 758, 760, 762, 764, 766,
768, 770, 772, 774, 776, 778, 780, 782, 784, 786, 788, 790,
792, 794, 796, 798, 800, 803, 805, 807, 809, 811, 813, 815,
817, 819, 821, 822, 823
};
}
private static final short _lexer_key_offsets[] = init__lexer_key_offsets_0();
private static byte[] init__lexer_trans_keys_0()
{
return new byte [] {
-61, -17, 10, 32, 34, 35, 37, 42, 64, 65, 68, 69,
70, 71, 79, 83, 86, 124, 9, 13, -106, 114, 122, 110,
101, 107, 108, 101, 114, 58, 10, 10, -61, 10, 32, 35,
124, 9, 13, -106, 10, 10, 122, 10, 101, 10, 108, 10,
108, 10, 105, 10, 107, 10, 58, -61, 10, 32, 34, 35,
37, 42, 64, 65, 68, 69, 70, 71, 79, 83, 86, 124,
9, 13, -61, 10, 32, 34, 35, 37, 42, 64, 65, 68,
69, 70, 71, 79, 83, 86, 124, 9, 13, 34, 34, 10,
13, 10, 13, 10, 32, 34, 9, 13, 10, 32, 34, 9,
13, 10, 32, 34, 9, 13, 10, 32, 34, 9, 13, 10,
32, 9, 13, 10, 32, 9, 13, 10, 13, 10, 95, 70,
69, 65, 84, 85, 82, 69, 95, 69, 78, 68, 95, 37,
32, 10, 13, 10, 13, 13, 32, 64, 9, 10, 9, 10,
13, 32, 64, 11, 12, 10, 32, 64, 9, 13, 109, 97,
105, 121, 101, 108, 105, 109, 32, 107, 105, -60, -97, 101,
114, 97, 107, 97, 116, 101, -61, -89, 109, 105, -59, -97,
58, 10, 10, -61, 10, 32, 35, 37, 42, 64, 65, 68,
69, 70, 79, 83, 86, 9, 13, -106, 10, 10, 122, 10,
101, 10, 108, 10, 108, 10, 105, 10, 107, 10, 58, 10,
95, 10, 70, 10, 69, 10, 65, 10, 84, 10, 85, 10,
82, 10, 69, 10, 95, 10, 69, 10, 78, 10, 68, 10,
95, 10, 37, 10, 32, 10, 109, 10, 97, 10, 105, 10,
121, 10, 101, 10, 108, 10, 105, 10, 109, 10, 32, 10,
107, 10, 105, -60, 10, -97, 10, 10, 101, 10, 114, 10,
97, 10, 107, 10, 97, 10, 116, 10, 32, 10, 122, 10,
97, 10, 109, 10, 97, 10, 110, 10, 101, 10, 110, 10,
97, 10, 114, 10, 121, 10, 111, 10, 32, 58, 10, 116,
10, 97, 10, 115, 10, 108, 10, 97, -60, 10, -97, 10,
-60, 10, -79, 10, 10, 101, 32, 122, 97, 109, 97, 110,
101, 110, 97, 114, 121, 111, 32, 58, 116, 97, 115, 108,
97, -60, -97, -60, -79, 58, 10, 10, -61, 10, 32, 35,
37, 42, 64, 65, 68, 69, 70, 79, 83, 86, 9, 13,
-106, 10, 10, 122, 10, 101, 10, 108, 10, 108, 10, 105,
10, 107, 10, 58, 10, 95, 10, 70, 10, 69, 10, 65,
10, 84, 10, 85, 10, 82, 10, 69, 10, 95, 10, 69,
10, 78, 10, 68, 10, 95, 10, 37, 10, 32, 10, 109,
10, 97, 10, 105, 10, 121, 10, 101, 10, 108, 10, 105,
10, 109, 10, 32, 10, 107, 10, 105, -60, 10, -97, 10,
10, 101, 10, 114, 10, 97, 10, 107, 10, 97, 10, 116,
10, 32, 10, 122, 10, 97, 10, 109, 10, 97, 10, 110,
10, 101, 10, 110, 10, 97, 10, 114, 10, 121, 10, 111,
10, 101, 10, 10, -61, 10, 32, 35, 37, 42, 64, 65,
68, 69, 70, 71, 79, 83, 86, 9, 13, -106, 10, 10,
122, 10, 101, 10, 108, 10, 108, 10, 105, 10, 107, 10,
58, 10, 95, 10, 70, 10, 69, 10, 65, 10, 84, 10,
85, 10, 82, 10, 69, 10, 95, 10, 69, 10, 78, 10,
68, 10, 95, 10, 37, 10, 32, 10, 109, 10, 97, 10,
105, 10, 121, 10, 101, 10, 108, 10, 105, 10, 109, 10,
32, 10, 107, 10, 105, -60, 10, -97, 10, 10, 101, 10,
114, 10, 97, 10, 107, 10, 97, 10, 116, 10, 101, -61,
10, -89, 10, 10, 109, 10, 105, -59, 10, -97, 10, 10,
32, 10, 122, 10, 97, 10, 109, 10, 97, 10, 110, 10,
101, 10, 110, 10, 97, 10, 114, 10, 121, 10, 111, 10,
32, 58, 10, 116, 10, 97, 10, 115, 10, 108, 10, 97,
-60, 10, -97, 10, -60, 10, -79, 10, 10, 101, 101, 32,
124, 9, 13, 10, 32, 92, 124, 9, 13, 10, 92, 124,
10, 92, 10, 32, 92, 124, 9, 13, -61, 10, 32, 34,
35, 37, 42, 64, 65, 68, 69, 70, 71, 79, 83, 86,
124, 9, 13, 101, 108, 108, 105, 107, 58, 10, 10, -61,
10, 32, 35, 37, 64, 71, 83, 9, 13, -106, 10, 10,
114, 122, 10, 110, 10, 101, 10, 107, 10, 108, 10, 101,
10, 114, 10, 58, 10, 101, 10, 108, 10, 108, 10, 105,
10, 107, 10, 95, 10, 70, 10, 69, 10, 65, 10, 84,
10, 85, 10, 82, 10, 69, 10, 95, 10, 69, 10, 78,
10, 68, 10, 95, 10, 37, 10, 101, -61, 10, -89, 10,
10, 109, 10, 105, -59, 10, -97, 10, 10, 101, 10, 110,
10, 97, 10, 114, 10, 121, 10, 111, 10, 32, 58, 10,
116, 10, 97, 10, 115, 10, 108, 10, 97, -60, 10, -97,
10, -60, 10, -79, 10, -69, -65, 0
};
}
private static final byte _lexer_trans_keys[] = init__lexer_trans_keys_0();
private static byte[] init__lexer_single_lengths_0()
{
return new byte [] {
0, 18, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1,
1, 5, 2, 2, 2, 2, 2, 2, 2, 2, 17, 17,
1, 1, 2, 2, 3, 3, 3, 3, 2, 2, 2, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 2, 2, 3, 5, 3, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 14, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 14, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 1, 1, 15, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 1, 2, 4, 3, 2,
4, 17, 1, 1, 1, 1, 1, 1, 1, 1, 8, 2,
3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2,
2, 2, 1, 1, 0
};
}
private static final byte _lexer_single_lengths[] = init__lexer_single_lengths_0();
private static byte[] init__lexer_range_lengths_0()
{
return new byte [] {
0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1,
0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0,
1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0
};
}
private static final byte _lexer_range_lengths[] = init__lexer_range_lengths_0();
private static short[] init__lexer_index_offsets_0()
{
return new short [] {
0, 0, 20, 22, 25, 27, 29, 31, 33, 35, 37, 39,
41, 43, 50, 53, 56, 59, 62, 65, 68, 71, 74, 93,
112, 114, 116, 119, 122, 127, 132, 137, 142, 146, 150, 153,
155, 157, 159, 161, 163, 165, 167, 169, 171, 173, 175, 177,
179, 181, 183, 185, 188, 191, 196, 203, 208, 210, 212, 214,
216, 218, 220, 222, 224, 226, 228, 230, 232, 234, 236, 238,
240, 242, 244, 246, 248, 250, 252, 254, 256, 258, 260, 262,
264, 266, 282, 285, 288, 291, 294, 297, 300, 303, 306, 309,
312, 315, 318, 321, 324, 327, 330, 333, 336, 339, 342, 345,
348, 351, 354, 357, 360, 363, 366, 369, 372, 375, 378, 381,
384, 387, 390, 393, 396, 399, 402, 405, 408, 411, 414, 417,
420, 423, 426, 429, 432, 435, 438, 441, 444, 448, 451, 454,
457, 460, 463, 466, 469, 472, 475, 478, 480, 482, 484, 486,
488, 490, 492, 494, 496, 498, 500, 502, 505, 507, 509, 511,
513, 515, 517, 519, 521, 523, 525, 527, 529, 545, 548, 551,
554, 557, 560, 563, 566, 569, 572, 575, 578, 581, 584, 587,
590, 593, 596, 599, 602, 605, 608, 611, 614, 617, 620, 623,
626, 629, 632, 635, 638, 641, 644, 647, 650, 653, 656, 659,
662, 665, 668, 671, 674, 677, 680, 683, 686, 689, 692, 695,
698, 701, 704, 707, 710, 712, 714, 731, 734, 737, 740, 743,
746, 749, 752, 755, 758, 761, 764, 767, 770, 773, 776, 779,
782, 785, 788, 791, 794, 797, 800, 803, 806, 809, 812, 815,
818, 821, 824, 827, 830, 833, 836, 839, 842, 845, 848, 851,
854, 857, 860, 863, 866, 869, 872, 875, 878, 881, 884, 887,
890, 893, 896, 899, 902, 905, 908, 911, 914, 918, 921, 924,
927, 930, 933, 936, 939, 942, 945, 948, 950, 954, 960, 964,
967, 973, 992, 994, 996, 998, 1000, 1002, 1004, 1006, 1008, 1018,
1021, 1025, 1028, 1031, 1034, 1037, 1040, 1043, 1046, 1049, 1052, 1055,
1058, 1061, 1064, 1067, 1070, 1073, 1076, 1079, 1082, 1085, 1088, 1091,
1094, 1097, 1100, 1103, 1106, 1109, 1112, 1115, 1118, 1121, 1124, 1127,
1130, 1133, 1136, 1139, 1142, 1146, 1149, 1152, 1155, 1158, 1161, 1164,
1167, 1170, 1173, 1175, 1177
};
}
private static final short _lexer_index_offsets[] = init__lexer_index_offsets_0();
private static short[] init__lexer_indicies_0()
{
return new short [] {
1, 2, 4, 3, 5, 6, 7, 8, 9, 10, 11, 12,
13, 14, 15, 16, 17, 18, 3, 0, 19, 0, 20, 21,
0, 22, 0, 23, 0, 24, 0, 25, 0, 26, 0, 27,
0, 28, 0, 30, 29, 32, 31, 33, 32, 34, 35, 35,
34, 31, 36, 32, 31, 32, 37, 31, 32, 38, 31, 32,
39, 31, 32, 40, 31, 32, 41, 31, 32, 42, 31, 32,
43, 31, 44, 46, 45, 47, 48, 49, 50, 51, 52, 53,
54, 55, 56, 57, 58, 59, 60, 45, 0, 1, 4, 3,
5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
17, 18, 3, 0, 61, 0, 62, 0, 64, 65, 63, 67,
68, 66, 71, 70, 72, 70, 69, 75, 74, 76, 74, 73,
75, 74, 77, 74, 73, 75, 74, 78, 74, 73, 80, 79,
79, 0, 4, 81, 81, 0, 83, 84, 82, 4, 0, 85,
0, 86, 0, 87, 0, 88, 0, 89, 0, 90, 0, 91,
0, 92, 0, 93, 0, 94, 0, 95, 0, 96, 0, 97,
0, 98, 0, 99, 0, 101, 102, 100, 104, 105, 103, 0,
0, 0, 0, 106, 107, 108, 107, 107, 110, 109, 106, 4,
111, 9, 111, 0, 112, 0, 113, 0, 114, 0, 115, 0,
116, 0, 117, 0, 118, 0, 119, 0, 120, 0, 121, 0,
113, 0, 122, 0, 123, 0, 124, 0, 119, 0, 125, 0,
126, 0, 127, 0, 113, 0, 128, 0, 129, 0, 130, 0,
131, 0, 132, 0, 133, 0, 134, 0, 135, 0, 137, 136,
139, 138, 140, 139, 141, 142, 143, 144, 142, 145, 146, 147,
148, 149, 150, 151, 141, 138, 152, 139, 138, 139, 153, 138,
139, 154, 138, 139, 155, 138, 139, 156, 138, 139, 157, 138,
139, 158, 138, 139, 159, 138, 139, 160, 138, 139, 161, 138,
139, 162, 138, 139, 163, 138, 139, 164, 138, 139, 165, 138,
139, 166, 138, 139, 167, 138, 139, 168, 138, 139, 169, 138,
139, 170, 138, 139, 171, 138, 139, 172, 138, 139, 173, 138,
139, 159, 138, 139, 174, 138, 139, 175, 138, 139, 176, 138,
139, 177, 138, 139, 178, 138, 139, 179, 138, 139, 180, 138,
139, 181, 138, 139, 182, 138, 139, 183, 138, 139, 175, 138,
184, 139, 138, 185, 139, 138, 139, 186, 138, 139, 181, 138,
139, 187, 138, 139, 188, 138, 139, 189, 138, 139, 175, 138,
139, 190, 138, 139, 191, 138, 139, 192, 138, 139, 193, 138,
139, 194, 138, 139, 175, 138, 139, 195, 138, 139, 196, 138,
139, 197, 138, 139, 198, 138, 139, 199, 138, 139, 200, 138,
139, 201, 159, 138, 139, 202, 138, 139, 203, 138, 139, 204,
138, 139, 205, 138, 139, 206, 138, 207, 139, 138, 208, 139,
138, 209, 139, 138, 158, 139, 138, 139, 175, 138, 210, 0,
211, 0, 212, 0, 213, 0, 214, 0, 113, 0, 215, 0,
216, 0, 217, 0, 218, 0, 219, 0, 220, 0, 221, 222,
0, 223, 0, 224, 0, 225, 0, 226, 0, 227, 0, 228,
0, 229, 0, 230, 0, 231, 0, 232, 0, 234, 233, 236,
235, 237, 236, 238, 239, 240, 241, 239, 242, 243, 244, 245,
246, 247, 248, 238, 235, 249, 236, 235, 236, 250, 235, 236,
251, 235, 236, 252, 235, 236, 253, 235, 236, 254, 235, 236,
255, 235, 236, 256, 235, 236, 257, 235, 236, 258, 235, 236,
259, 235, 236, 260, 235, 236, 261, 235, 236, 262, 235, 236,
263, 235, 236, 264, 235, 236, 265, 235, 236, 266, 235, 236,
267, 235, 236, 268, 235, 236, 269, 235, 236, 270, 235, 236,
256, 235, 236, 271, 235, 236, 272, 235, 236, 273, 235, 236,
274, 235, 236, 275, 235, 236, 276, 235, 236, 277, 235, 236,
278, 235, 236, 279, 235, 236, 280, 235, 236, 272, 235, 281,
236, 235, 282, 236, 235, 236, 283, 235, 236, 278, 235, 236,
284, 235, 236, 285, 235, 236, 286, 235, 236, 272, 235, 236,
287, 235, 236, 288, 235, 236, 289, 235, 236, 290, 235, 236,
291, 235, 236, 272, 235, 236, 292, 235, 236, 293, 235, 236,
294, 235, 236, 295, 235, 236, 296, 235, 236, 255, 235, 236,
272, 235, 298, 297, 300, 299, 301, 300, 302, 303, 304, 305,
303, 306, 307, 308, 309, 310, 311, 312, 313, 302, 299, 314,
300, 299, 300, 315, 299, 300, 316, 299, 300, 317, 299, 300,
318, 299, 300, 319, 299, 300, 320, 299, 300, 321, 299, 300,
322, 299, 300, 323, 299, 300, 324, 299, 300, 325, 299, 300,
326, 299, 300, 327, 299, 300, 328, 299, 300, 329, 299, 300,
330, 299, 300, 331, 299, 300, 332, 299, 300, 333, 299, 300,
334, 299, 300, 335, 299, 300, 321, 299, 300, 336, 299, 300,
337, 299, 300, 338, 299, 300, 339, 299, 300, 340, 299, 300,
341, 299, 300, 342, 299, 300, 343, 299, 300, 344, 299, 300,
345, 299, 300, 337, 299, 346, 300, 299, 347, 300, 299, 300,
348, 299, 300, 343, 299, 300, 349, 299, 300, 350, 299, 300,
351, 299, 300, 337, 299, 300, 352, 299, 353, 300, 299, 354,
300, 299, 300, 355, 299, 300, 356, 299, 357, 300, 299, 320,
300, 299, 300, 358, 299, 300, 359, 299, 300, 360, 299, 300,
361, 299, 300, 362, 299, 300, 337, 299, 300, 363, 299, 300,
364, 299, 300, 365, 299, 300, 366, 299, 300, 367, 299, 300,
368, 299, 300, 369, 321, 299, 300, 370, 299, 300, 371, 299,
300, 372, 299, 300, 373, 299, 300, 374, 299, 375, 300, 299,
376, 300, 299, 377, 300, 299, 320, 300, 299, 300, 337, 299,
113, 0, 378, 379, 378, 0, 382, 381, 383, 384, 381, 380,
0, 386, 387, 385, 0, 386, 385, 382, 388, 386, 387, 388,
385, 389, 382, 390, 391, 392, 393, 394, 395, 396, 397, 398,
399, 400, 401, 402, 403, 404, 390, 0, 405, 0, 406, 0,
407, 0, 408, 0, 409, 0, 410, 0, 412, 411, 414, 413,
415, 414, 416, 417, 418, 417, 419, 420, 416, 413, 421, 414,
413, 414, 422, 423, 413, 414, 424, 413, 414, 425, 413, 414,
426, 413, 414, 427, 413, 414, 428, 413, 414, 429, 413, 414,
430, 413, 414, 431, 413, 414, 432, 413, 414, 433, 413, 414,
434, 413, 414, 429, 413, 414, 435, 413, 414, 436, 413, 414,
437, 413, 414, 438, 413, 414, 439, 413, 414, 440, 413, 414,
441, 413, 414, 442, 413, 414, 443, 413, 414, 444, 413, 414,
445, 413, 414, 446, 413, 414, 447, 413, 414, 448, 413, 414,
449, 413, 450, 414, 413, 451, 414, 413, 414, 452, 413, 414,
453, 413, 454, 414, 413, 429, 414, 413, 414, 455, 413, 414,
456, 413, 414, 457, 413, 414, 458, 413, 414, 459, 413, 414,
460, 413, 414, 461, 430, 413, 414, 462, 413, 414, 463, 413,
414, 464, 413, 414, 465, 413, 414, 466, 413, 467, 414, 413,
468, 414, 413, 469, 414, 413, 429, 414, 413, 470, 0, 3,
0, 471, 0
};
}
private static final short _lexer_indicies[] = init__lexer_indicies_0();
private static short[] init__lexer_trans_targs_0()
{
return new short [] {
0, 2, 374, 23, 23, 24, 34, 36, 50, 53, 56, 58,
67, 71, 75, 151, 157, 307, 308, 3, 4, 314, 5, 6,
7, 8, 9, 10, 11, 12, 13, 12, 13, 14, 13, 23,
15, 16, 17, 18, 19, 20, 21, 22, 2, 23, 23, 24,
34, 36, 50, 53, 56, 58, 67, 71, 75, 151, 157, 307,
308, 25, 26, 27, 28, 27, 27, 28, 27, 29, 29, 29,
30, 29, 29, 29, 30, 31, 32, 33, 23, 33, 34, 23,
35, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
48, 49, 376, 51, 52, 23, 35, 52, 23, 35, 54, 55,
23, 54, 53, 55, 57, 50, 59, 60, 61, 62, 63, 64,
65, 66, 68, 69, 70, 72, 73, 74, 76, 77, 78, 79,
80, 81, 82, 83, 84, 85, 84, 85, 86, 85, 23, 94,
108, 109, 111, 120, 124, 128, 134, 150, 87, 88, 89, 90,
91, 92, 93, 22, 95, 96, 97, 98, 99, 100, 101, 102,
103, 104, 105, 106, 107, 23, 110, 108, 112, 113, 114, 115,
116, 117, 118, 119, 121, 122, 123, 125, 126, 127, 129, 130,
131, 132, 133, 135, 136, 137, 138, 139, 140, 141, 142, 143,
144, 145, 146, 147, 148, 149, 152, 153, 154, 155, 156, 158,
159, 160, 161, 162, 163, 164, 232, 165, 166, 167, 168, 169,
170, 171, 172, 173, 174, 175, 176, 175, 176, 177, 176, 23,
185, 199, 200, 202, 211, 215, 219, 225, 231, 178, 179, 180,
181, 182, 183, 184, 22, 186, 187, 188, 189, 190, 191, 192,
193, 194, 195, 196, 197, 198, 23, 201, 199, 203, 204, 205,
206, 207, 208, 209, 210, 212, 213, 214, 216, 217, 218, 220,
221, 222, 223, 224, 226, 227, 228, 229, 230, 233, 234, 233,
234, 235, 234, 23, 243, 257, 258, 260, 269, 273, 277, 284,
290, 306, 236, 237, 238, 239, 240, 241, 242, 22, 244, 245,
246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 23,
259, 257, 261, 262, 263, 264, 265, 266, 267, 268, 270, 271,
272, 274, 275, 276, 278, 279, 280, 281, 282, 283, 285, 286,
287, 288, 289, 291, 292, 293, 294, 295, 296, 297, 298, 299,
300, 301, 302, 303, 304, 305, 308, 309, 310, 312, 313, 311,
309, 310, 311, 309, 312, 2, 313, 24, 34, 36, 50, 53,
56, 58, 67, 71, 75, 151, 157, 307, 308, 315, 316, 317,
318, 319, 320, 321, 322, 321, 322, 323, 322, 23, 337, 351,
358, 324, 325, 332, 326, 327, 328, 329, 330, 331, 22, 333,
334, 335, 336, 338, 339, 340, 341, 342, 343, 344, 345, 346,
347, 348, 349, 350, 23, 352, 353, 354, 355, 356, 357, 359,
360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371,
372, 373, 375, 0
};
}
private static final short _lexer_trans_targs[] = init__lexer_trans_targs_0();
private static short[] init__lexer_trans_actions_0()
{
return new short [] {
43, 29, 0, 0, 54, 3, 1, 0, 29, 1, 29, 29,
29, 29, 29, 29, 29, 29, 35, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 57, 144, 0, 54, 84, 0, 81,
0, 0, 0, 0, 0, 0, 0, 21, 63, 31, 130, 60,
57, 31, 63, 57, 63, 63, 63, 63, 63, 63, 63, 63,
66, 0, 0, 7, 139, 48, 0, 102, 9, 5, 45, 134,
45, 0, 33, 122, 33, 33, 0, 11, 106, 0, 0, 114,
25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 57, 149, 126, 0, 110, 23, 0, 27,
118, 27, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 57, 144, 0, 54, 84, 0, 72, 33,
84, 84, 84, 84, 84, 84, 84, 84, 0, 0, 0, 0,
0, 0, 0, 15, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 15, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 57, 144, 0, 54, 84, 0, 78,
33, 84, 84, 84, 84, 84, 84, 84, 84, 0, 0, 0,
0, 0, 0, 0, 19, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 19, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 57, 144, 0,
54, 84, 0, 75, 33, 84, 84, 84, 84, 84, 84, 84,
84, 84, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 37, 37, 54, 37,
87, 0, 0, 39, 0, 96, 0, 93, 90, 41, 96, 90,
96, 96, 96, 96, 96, 96, 96, 96, 99, 0, 0, 0,
0, 0, 0, 57, 144, 0, 54, 84, 0, 69, 33, 84,
84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 13, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0
};
}
private static final short _lexer_trans_actions[] = init__lexer_trans_actions_0();
private static short[] init__lexer_eof_actions_0()
{
return new short [] {
0, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 43
};
}
private static final short _lexer_eof_actions[] = init__lexer_eof_actions_0();
static final int lexer_start = 1;
static final int lexer_first_final = 376;
static final int lexer_en_main = 1;
// line 159 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.java.rl"
public void scan(String source) {
String input = source + "\n%_FEATURE_END_%";
byte[] data = null;
try {
data = input.getBytes("UTF-8");
} catch(UnsupportedEncodingException e) {
throw new RuntimeException(e);
}
int cs, p = 0, pe = data.length;
int eof = pe;
int lineNumber = 1;
int lastNewline = 0;
int contentStart = -1;
int currentLine = -1;
int docstringContentTypeStart = -1;
int docstringContentTypeEnd = -1;
int startCol = -1;
int nextKeywordStart = -1;
int keywordStart = -1;
String keyword = null;
List currentRow = null;
// line 571 "java/src/main/java/gherkin/lexer/Tr.java"
{
cs = lexer_start;
}
// line 185 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.java.rl"
// line 578 "java/src/main/java/gherkin/lexer/Tr.java"
{
int _klen;
int _trans = 0;
int _acts;
int _nacts;
int _keys;
int _goto_targ = 0;
_goto: while (true) {
switch ( _goto_targ ) {
case 0:
if ( p == pe ) {
_goto_targ = 4;
continue _goto;
}
if ( cs == 0 ) {
_goto_targ = 5;
continue _goto;
}
case 1:
_match: do {
_keys = _lexer_key_offsets[cs];
_trans = _lexer_index_offsets[cs];
_klen = _lexer_single_lengths[cs];
if ( _klen > 0 ) {
int _lower = _keys;
int _mid;
int _upper = _keys + _klen - 1;
while (true) {
if ( _upper < _lower )
break;
_mid = _lower + ((_upper-_lower) >> 1);
if ( data[p] < _lexer_trans_keys[_mid] )
_upper = _mid - 1;
else if ( data[p] > _lexer_trans_keys[_mid] )
_lower = _mid + 1;
else {
_trans += (_mid - _keys);
break _match;
}
}
_keys += _klen;
_trans += _klen;
}
_klen = _lexer_range_lengths[cs];
if ( _klen > 0 ) {
int _lower = _keys;
int _mid;
int _upper = _keys + (_klen<<1) - 2;
while (true) {
if ( _upper < _lower )
break;
_mid = _lower + (((_upper-_lower) >> 1) & ~1);
if ( data[p] < _lexer_trans_keys[_mid] )
_upper = _mid - 2;
else if ( data[p] > _lexer_trans_keys[_mid+1] )
_lower = _mid + 2;
else {
_trans += ((_mid - _keys)>>1);
break _match;
}
}
_trans += _klen;
}
} while (false);
_trans = _lexer_indicies[_trans];
cs = _lexer_trans_targs[_trans];
if ( _lexer_trans_actions[_trans] != 0 ) {
_acts = _lexer_trans_actions[_trans];
_nacts = (int) _lexer_actions[_acts++];
while ( _nacts-- > 0 )
{
switch ( _lexer_actions[_acts++] )
{
case 0:
// line 16 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.java.rl"
{
contentStart = p;
currentLine = lineNumber;
if(keyword != null) {
startCol = p - lastNewline - (keyword.length() + 1);
}
}
break;
case 1:
// line 24 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.java.rl"
{
currentLine = lineNumber;
startCol = p - lastNewline;
}
break;
case 2:
// line 29 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.java.rl"
{
contentStart = p;
}
break;
case 3:
// line 33 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.java.rl"
{
docstringContentTypeStart = p;
}
break;
case 4:
// line 37 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.java.rl"
{
docstringContentTypeEnd = p;
}
break;
case 5:
// line 41 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.java.rl"
{
String con = unindent(startCol, substring(data, contentStart, nextKeywordStart-1).replaceFirst("(\\r?\\n)?([\\t ])*\\Z", "").replace("\\\"\\\"\\\"", "\"\"\""));
String conType = substring(data, docstringContentTypeStart, docstringContentTypeEnd).trim();
listener.docString(conType, con, currentLine);
}
break;
case 6:
// line 47 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.java.rl"
{
String[] nameDescription = nameAndUnindentedDescription(startCol, keywordContent(data, p, eof, nextKeywordStart, contentStart));
listener.feature(keyword, nameDescription[0], nameDescription[1], currentLine);
if(nextKeywordStart != -1) p = nextKeywordStart - 1;
nextKeywordStart = -1;
}
break;
case 7:
// line 54 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.java.rl"
{
String[] nameDescription = nameAndUnindentedDescription(startCol, keywordContent(data, p, eof, nextKeywordStart, contentStart));
listener.background(keyword, nameDescription[0], nameDescription[1], currentLine);
if(nextKeywordStart != -1) p = nextKeywordStart - 1;
nextKeywordStart = -1;
}
break;
case 8:
// line 61 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.java.rl"
{
String[] nameDescription = nameAndUnindentedDescription(startCol, keywordContent(data, p, eof, nextKeywordStart, contentStart));
listener.scenario(keyword, nameDescription[0], nameDescription[1], currentLine);
if(nextKeywordStart != -1) p = nextKeywordStart - 1;
nextKeywordStart = -1;
}
break;
case 9:
// line 68 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.java.rl"
{
String[] nameDescription = nameAndUnindentedDescription(startCol, keywordContent(data, p, eof, nextKeywordStart, contentStart));
listener.scenarioOutline(keyword, nameDescription[0], nameDescription[1], currentLine);
if(nextKeywordStart != -1) p = nextKeywordStart - 1;
nextKeywordStart = -1;
}
break;
case 10:
// line 75 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.java.rl"
{
String[] nameDescription = nameAndUnindentedDescription(startCol, keywordContent(data, p, eof, nextKeywordStart, contentStart));
listener.examples(keyword, nameDescription[0], nameDescription[1], currentLine);
if(nextKeywordStart != -1) p = nextKeywordStart - 1;
nextKeywordStart = -1;
}
break;
case 11:
// line 82 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.java.rl"
{
listener.step(keyword, substring(data, contentStart, p).trim(), currentLine);
}
break;
case 12:
// line 86 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.java.rl"
{
listener.comment(substring(data, contentStart, p).trim(), lineNumber);
keywordStart = -1;
}
break;
case 13:
// line 91 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.java.rl"
{
listener.tag(substring(data, contentStart, p).trim(), currentLine);
keywordStart = -1;
}
break;
case 14:
// line 96 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.java.rl"
{
lineNumber++;
}
break;
case 15:
// line 100 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.java.rl"
{
lastNewline = p + 1;
}
break;
case 16:
// line 104 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.java.rl"
{
if(keywordStart == -1) keywordStart = p;
}
break;
case 17:
// line 108 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.java.rl"
{
keyword = substring(data, keywordStart, p).replaceFirst(":$","");
keywordStart = -1;
}
break;
case 18:
// line 113 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.java.rl"
{
nextKeywordStart = p;
}
break;
case 19:
// line 117 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.java.rl"
{
p = p - 1;
currentRow = new ArrayList();
currentLine = lineNumber;
}
break;
case 20:
// line 123 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.java.rl"
{
contentStart = p;
}
break;
case 21:
// line 127 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.java.rl"
{
String con = substring(data, contentStart, p).trim();
currentRow.add(con
.replace("\\|", "|")
.replace("\\n", "\n")
.replace("\\\\", "\\")
);
}
break;
case 22:
// line 136 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.java.rl"
{
listener.row(currentRow, currentLine);
}
break;
case 23:
// line 140 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.java.rl"
{
if(cs < lexer_first_final) {
String content = currentLineContent(data, lastNewline);
throw new LexingError("Lexing error on line " + lineNumber + ": '" + content + "'. See http://wiki.github.com/cucumber/gherkin/lexingerror for more information.");
} else {
listener.eof();
}
}
break;
// line 839 "java/src/main/java/gherkin/lexer/Tr.java"
}
}
}
case 2:
if ( cs == 0 ) {
_goto_targ = 5;
continue _goto;
}
if ( ++p != pe ) {
_goto_targ = 1;
continue _goto;
}
case 4:
if ( p == eof )
{
int __acts = _lexer_eof_actions[cs];
int __nacts = (int) _lexer_actions[__acts++];
while ( __nacts-- > 0 ) {
switch ( _lexer_actions[__acts++] ) {
case 23:
// line 140 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.java.rl"
{
if(cs < lexer_first_final) {
String content = currentLineContent(data, lastNewline);
throw new LexingError("Lexing error on line " + lineNumber + ": '" + content + "'. See http://wiki.github.com/cucumber/gherkin/lexingerror for more information.");
} else {
listener.eof();
}
}
break;
// line 871 "java/src/main/java/gherkin/lexer/Tr.java"
}
}
}
case 5:
}
break; }
}
// line 186 "/Users/ahellesoy/github/gherkin/tasks/../ragel/i18n/tr.java.rl"
}
private String keywordContent(byte[] data, int p, int eof, int nextKeywordStart, int contentStart) {
int endPoint = (nextKeywordStart == -1 || (p == eof)) ? p : nextKeywordStart;
return substring(data, contentStart, endPoint);
}
private String[] nameAndUnindentedDescription(int startCol, String text) {
String[] lines = text.split("\n");
String name = lines.length > 0 ? lines[0].trim() : "";
StringBuffer description = new StringBuffer();
for(int i = 1; i < lines.length; i++) {
description.append(lines[i]);
description.append("\n");
}
return new String[]{name, unindent(startCol+2, description.toString()).replaceAll("\\s+$", "")};
}
private String unindent(int startCol, String text) {
return Pattern.compile("^[\t ]{0," + startCol + "}", Pattern.MULTILINE).matcher(text).replaceAll("");
}
private String currentLineContent(byte[] data, int lastNewline) {
return substring(data, lastNewline, data.length).trim();
}
private String substring(byte[] data, int start, int end) {
try {
return new String(data, start, end-start, "utf-8");
} catch(java.io.UnsupportedEncodingException e) {
throw new RuntimeException("Internal error", e);
}
}
}