Home | History | Annotate | Download | only in intltest

Lines Matching refs:append

89     // Using memory copy method to append a C array to buffer, 
90 inline void append(const void * c, int size){ // size unit is byte
120 name & append(type c) {buf.append(&c, sizeof(type)); return *this;}\
121 name & append_array(const type * p, int size) {buf.append(p, sizeof(type)*size); return *this;}\
193 names.append(offset);
194 refs.append(var_ref);
368 str.append('\'');
374 str.append('\'');
382 void append(const char * strToAppend){
384 append(*strToAppend);
388 inline void append(const char c){
394 str.append('\\');
395 str.append('\\');
399 str.append('\'');
400 str.append('\'');
404 str.append('\\');
405 str.append('\'');
409 if (bslash_escape) str.append('\\');
410 str.append(c);
414 if (bslash_escape) str.append('\\');
415 str.append(c);
418 str.append(c);
428 append(*literal);
446 for (int i=0; i<size; ++i) weights.append(DEFAULT_WEIGHT);
451 for (int i=s; i<size; ++i) weights.append(DEFAULT_WEIGHT);
463 void append(int weight){
464 weights.append(weight);
595 str.append(*p_curr);
602 str.append(*p_last);
609 static WeightedRand wr(& Buffer_int().append(DEFAULT_WEIGHT * 10), 5);
653 str.append(0);
673 str.append(last[rand()%last_len]);
675 str.append(0);
694 str.append(0); // terminal null
698 void append (Pick * node){
699 items.append(node);
734 str.append(0);
768 Alternation & append (Pick * node, int weight = DEFAULT_WEIGHT){
769 items.append(node);
770 wr.append(weight);
797 token.append(0); // close buffer
847 token.append(c);
848 token.append(0);
853 case '$' : state = IN_VAR_FIRST; token.append(c); break;
858 } else if (isDigit(c)){ state = IN_NUM; token.append(c);
859 } else if (isAlphabet(c)){ state = IN_STRING; token.append(c);
865 token.append(c);
872 token.append(c);
880 token.append(c);
897 token.append(c);
908 token.append(c); // eat up everything, includes back slash
914 case 'n' : token.append('\n'); break;
915 case 'r' : token.append('\r'); break;
916 case 't' : token.append('\t'); break;
917 case '\'' : token.append('\''); break;
918 case '\\' : token.append('\\'); break;
919 default: token.append(c); // unknown escaping, treat it as literal
1043 weights.append(w);
1058 w2.append(DEFAULT_WEIGHT - weights[0]).append(weights[0]);
1133 seq->append(n);
1143 seq->append(n);
1188 alt->append(n,w);
1200 alt->append(n,w);
1438 seq.append(new Literal("abc "));
1439 seq.append(new Literal(", s"));
1446 alt.append(new Literal("aaa_10%"),10);
1447 alt.append(new Literal("bbb_0%"),0);
1448 alt.append(new Literal("ccc_10%"),10);
1449 alt.append(new Literal("ddddddd_50%"),50);
1458 t.append(1).append(0).append(5);
1469 t.append(1).append(0).append(5);
1470 WeightedRand wr(&Buffer_int().append(10).append(0).append(50),4);
1483 Repeat r2(new Literal("b{1,3}1%0%5% "), 1, 3, &Buffer_int().append(1).append(0).append(5));
1695 .append(new Literal("a")).append(new Literal("b")).append(new Literal("c"))
1696 .append(new Literal("d")).append(new Literal("e")).append(new Literal("f"))
1697 .append(new Literal("g")).append(new Literal("h")).append(new Literal("i"))
1698 .append(new Literal("j")).append(new Literal("k")).append(new Literal("l"))
1699 .append(new Literal("m")).append(new Literal("n")).append(new Literal("o"))