home *** CD-ROM | disk | FTP | other *** search
- program tstrs;
-
- uses
-
- vstringu;
-
- Var
-
- S : STRING;
-
- begin
-
-
- writeln( '"',
- GetWords( 'Now is the time for all good men', 8 ),
- '"' );
-
-
- writeln( '"',
- GetWords( 'men', 8 ),
- '"' );
-
-
- writeln( '"',
- GetWords( '', 8 ),
- '"' );
-
-
- writeln( '"',
- GetWords( ' Hey Dude! ', 1 ),
- '"' );
-
-
- writeln( '"',
- GetWords( ' ', 8 ),
- '"' );
-
- writeln( '"',
- GetQuote( 'Now is "the time" for all good men' ),
- '"' );
-
-
- S := 'Now is "the time" for all good men.';
-
- writeln( '"',
- TakeQuote( S ),
- '" (',S,')' );
-
-
-
- S := 'Now is the time for all good men.';
-
- writeln( '"',
- TakeQuote( S ),
- '" (',S,')' );
-
-
- S := ' ';
-
- writeln( '"',
- TakeQuote( S ),
- '" (',S,')' );
-
- {1234567890123456789012345678901234567890}
- WriteLn( PosWord( 2, 'Now is the time for all good men ' ) );
-
- { 1 2 3 }
- {1234567890123456789012345678901234567890}
- WriteLn( PosWord( 8, 'Now is the time for all good men' ) );
-
- WriteLn( PosWord( 9, 'Now is the time for all good men' ) );
-
- WriteLn( PosWord( 2, ' ' ) );
-
-
-
- WriteLn;
-
- WriteLn( CountWords( 'Now is the time for all good men' ) );
-
- WriteLn( CountWords( 'Now' ) );
-
- WriteLn( CountWords( '' ) );
-
- WriteLn( CountWords( 'Now is the time for all good men ' ) );
-
-
-
-
-
- end.