Zorba
The XQuery Processor
Documentation
Live Demo
Modules
Download
Tools
Blog
Code
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
include
zorba
zorba_functions.h
Go to the documentation of this file.
1
/*
2
* Copyright 2006-2008 The FLWOR Foundation.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
#ifndef ZORBA_FUNCTIONS_API_H
18
#define ZORBA_FUNCTIONS_API_H
19
20
#include <zorba/config.h>
21
22
namespace
zorba {
23
24
class
String;
25
26
namespace
zfn {
27
28
///////////////////////////////////////////////////////////////////////////////
29
30
/**
31
* Removes all leading and trailing whitespace characters.
32
*
33
* @param s The string to remove whitespace characters from.
34
*/
35
ZORBA_DLL_PUBLIC
36
void
trim
(
String
&s );
37
38
/**
39
* Removes all leading and trailing specified characters.
40
*
41
* @param s The string to remove specified characters from.
42
* @param chars The characters to remove.
43
*/
44
ZORBA_DLL_PUBLIC
45
void
trim
(
String
&s,
const
char
*chars );
46
47
#if 0
48
ZORBA_DLL_PUBLIC
49
String
tokenize
(
String
const
&pattern,
String
const
&flags,
50
size_type* startPos,
bool
* hasMatched )
const
;
51
#endif
52
53
///////////////////////////////////////////////////////////////////////////////
54
55
}
// namespace zfn
56
}
// namespace zorba
57
58
#endif
/* ZORBA_FUNCTIONS_API_H */
59
/* vim:set et sw=2 ts=2: */