.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "VMOD_STR" 3 "" "" "" .SH NAME vmod_str \- Str VMOD .\" . .\" NB: This file is machine generated, DO NOT EDIT! . .\" . .\" Edit ./vmod_str.vcc and run make instead . .\" . .SH SYNOPSIS .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C 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) .ft P .fi .UNINDENT .UNINDENT .SH DESCRIPTION .SS INT count(STRING s) .sp Returns the number of ascii characters in S, or \-1 if S is null. .SS BOOL startswith(STRING s1, STRING s2) .sp Returns true if S1 starts with S2. .SS BOOL endswith(STRING s1, STRING s2) .sp Returns true if S1 ends with S2. .SS BOOL contains(STRING s1, STRING s2) .sp Returns true if S1 contains S2. .SS STRING take(STRING s, INT n, INT offset=0) .sp 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. .sp A negative offset means "from the end of the string" and a negative n means "left of the offset". .SS STRING reverse(STRING s) .sp Reverse s. .SS STRING split(STRING S, INT n, STRING sep=" t") .sp Split s and return the n\-th token. Characters in sep are separators. A negative n indicate "from the end of the string". .SH COPYRIGHT .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C Copyright (c) 2016 Guillaume Quintard Author: Guillaume Quintard (vmodtool requires this format.) .ft P .fi .UNINDENT .UNINDENT .\" Generated by docutils manpage writer. .