7 virtual void runTest();
12 void StringTest
<T
>:: runTest() {
17 void StringTest
<T
>::testFunction() {
18 // initialize s with string literal
19 cout
<< "in StringTest" << endl
;
20 string
s("I am a shot string");
23 // insert 'r' to fix "shot"
24 s
.insert(s
.begin()+10,'r' );
27 // concatenate another string
28 s
+= "and now a longer string";
31 // find position where blank needs to be inserted
32 string::size_type spos
= s
.find("and");
36 // erase the concatenated part
42 StringTest
<wchar_t> ts
;
49 I am a short stringand now a longer string
50 I am a short string and now a longer string
This page took 0.032092 seconds and 4 git commands to generate.