strrchr()  strrem()

Chapter 5: General Objects and Methods

strrtt()

Description

Truncates the string, starting from the right. This method is case-sensitive.

Syntax

strrtt(string pattern);

Parameter

Description

pattern

Pattern for which to search. Can be a literal value or another string object.

Return value

Integer. Returns 1 for success, and 0 for failure.

Usage

Pointer to object

Object

string digest;

string digest;

digest = “3RR56”;

digest = “Abc-334”;

ps->strrtt (digest);

mystring.strrtt (digest);

ps->strrtt    (“some literal value”);

mystring.strrtt (“PR-01”);

Examples

Example 66

string mystr;
string pattern;
mystr = “hello world/goodbye world”;
pattern = “world”;
mystr.strrtt(pattern);
//mystr now contains “hello ”




Copyright © 2005. Sybase Inc. All rights reserved. strrem()

View this book as PDF