6.1.3 String Manipulation Functions

The following functions are provided for performing simple manipulations upon strings:

The following simple examples demonstrate the use of these functions:

pyxplot> x="It was the best of times, it was the worst of times"
pyxplot> print strlen(x)
51
pyxplot> print strrange(x,0,24)
It was the best of times
pyxplot> print strrange(x,-25,0)
it was the worst of times
pyxplot> print strupper(x)
IT WAS THE BEST OF TIMES, IT WAS THE WORST OF TIMES