GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
VMOD_STR(3) VMOD_STR(3)

vmod_str - Str VMOD

import str [as name] [from "path"]
INT count(STRING s)
BOOL startswith(STRING s1, STRING s2)
BOOL endswith(STRING s1, STRING s2)
BOOL contains(STRING s1, STRING s2)
STRING take(STRING s, INT n, INT offset)
STRING reverse(STRING s)
STRING split(STRING S, INT n, STRING sep)


Returns the number of ascii characters in S, or -1 if S is null.

Returns true if S1 starts with S2.

Returns true if S1 ends with S2.

Returns true if S1 contains S2.

Returns a string composed of the N first characters of S. If S is shorter than N character, the return string is truncated. If S is NULL, NULL is returned.

A negative offset means "from the end of the string" and a negative n means "left of the offset".

Reverse s.

Split s and return the n-th token. Characters in sep are separators. A negative n indicate "from the end of the string".

Copyright (c) 2016 Guillaume Quintard
Author: Guillaume Quintard <guillaume.quintard@gmail.com>
(vmodtool requires this format.)



Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.