Initial import from FreeBSD RELENG_4:
[dragonfly.git] / contrib / libstdc++ / tests / tstring.exp
1 an empty string:
2 A string initialized to Hello:Hello
3 A string initialized to previous string:Hello
4 A string initialized to (previous string, 1, 2):el
5 A string initialized to @:@
6 A string initialized to 20:20
7 n = 20 atoi(n) = 20 atof(n) = 20
8 is = Hello
9 z = x + y = Helloworld
10 x += y; x = Helloworld
11 y.insert (0, x); y = Helloworld
12 x = x + y + x; x = HelloworldHello
13 x = y + x + x; x = worldHelloHello
14 z = x + s +  + y.substr (y.find (w), 1) + y.substr (y.find (w) + 1) + . = Hello, world.
15 ch = x[0] = H
16 z = x.substr (2, 3) = llo
17 x.replace (2, 2, r); x = Hero
18 x.replace (0, 1, 'j'); x = jello
19 x = jeHelloo
20 enter a word:word =abcdefghijklmnopqrstuvwxyz length = 26
21
22 End of test