Lines Matching refs:app
939 auto app = appender!(T[])();
941 app.put(stuff[i]);
942 insertInPlace(array, pos, app.data);
1026 auto app = appender!(T[])();
1027 app.put(array[0 .. pos]);
1029 app.put(stuff[i]);
1030 app.put(array[pos..$]);
1031 array = app.data;
2081 auto app = appender!(E[])();
2082 app.put(subject[0 .. subject.length - balance.length]);
2083 app.put(to.save);
2084 replaceInto(app, balance[from.length .. $], from, to);
2086 return app.data;
2223 auto app = appender!(T[])();
2224 app.put(subject[0 .. from]);
2225 app.put(stuff);
2226 app.put(subject[to .. $]);
2227 return app.data;
2549 auto app = appender!(E[])();
2550 app.put(subject[0 .. idx]);
2551 app.put(to);
2561 app.put(subject[idx + fromLength .. $]);
2563 return app.data;
2663 auto app = appender!(E[])();
2665 app.put(subject[0 .. idx]);
2667 app.put(subject[0 .. $ - idx - fromLength]);
2669 app.put(to);
2672 app.put(subject[idx+fromLength .. $]);
2674 app.put(subject[$ - idx .. $]);
2676 return app.data;
3125 auto app = appender!string();
3128 app.put(c);
3129 assert(app[] == "abcdefg");
3141 auto app = appender!(int[])();
3142 app.put(1);
3143 app.put(2);
3144 app.put(3);
3145 assert("%s".format(app) == "Appender!(int[])(%s)".format([1,2,3]));
3157 auto app = appender!(R[]);
3159 app.put(r[0]);
3160 app.put(r[]);
3308 auto app = appender!(char[])();
3310 foreach (char c; b) app.put(c);
3311 assert(app[] == "abcdefg");
3314 auto app = appender!(char[])();
3316 foreach (char c; b) app ~= c;
3317 assert(app[] == "abcdefg");
3545 auto app = appender!(const(E)[])();
3547 app.put(e);
3548 return app[];
3601 //{auto app = Appender!immARR(mut);} //Worked. Will cease to work. Creates warning.
3625 Appender!(char[]) app;
3626 app.reserve(1); //cover reserve on non-initialized
3628 app.put('a');
3629 assert(equal(app[], 'a'.repeat(100_000)));
3636 auto app = appender(arr[0 .. 0]);
3637 app.reserve(1); //This should not trigger a call to extend
3638 app.put(ubyte(1)); //Don't clobber arr
3644 Appender!string app;
3645 app.put("foo");
3646 static assert(!__traits(compiles, app.clear()));
3647 assert(app[] == "foo");
3729 auto app = appender(&arr);
3731 foreach (char c; b) app.put(c);
3732 assert(app[] == "abcdefg");
3737 auto app = appender(&arr);
3739 foreach (char c; b) app ~= c;
3740 assert(app[] == "abcdefg");
3787 Appender!(int[]) app;
3789 app.put(range);
3790 assert(app[] == [1, 2, 3]);