LibreOffice
LibreOffice 4.1 SDK C/C++ API Reference
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
rtl
uri.h
Go to the documentation of this file.
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
/*
3
* This file is part of the LibreOffice project.
4
*
5
* This Source Code Form is subject to the terms of the Mozilla Public
6
* License, v. 2.0. If a copy of the MPL was not distributed with this
7
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
8
*
9
* This file incorporates work covered by the following license notice:
10
*
11
* Licensed to the Apache Software Foundation (ASF) under one or more
12
* contributor license agreements. See the NOTICE file distributed
13
* with this work for additional information regarding copyright
14
* ownership. The ASF licenses this file to you under the Apache
15
* License, Version 2.0 (the "License"); you may not use this file
16
* except in compliance with the License. You may obtain a copy of
17
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
18
*/
19
20
#ifndef _RTL_URI_H_
21
#define _RTL_URI_H_
22
23
#include "
sal/config.h
"
24
25
#include "
rtl/textenc.h
"
26
#include "
rtl/ustring.h
"
27
#include "
sal/saldllapi.h
"
28
#include "
sal/types.h
"
29
30
#if defined __cplusplus
31
extern
"C"
{
32
#endif
/* __cplusplus */
33
45
typedef
enum
46
{
51
rtl_UriCharClassNone
,
52
60
rtl_UriCharClassUric
,
61
68
rtl_UriCharClassUricNoSlash
,
69
76
rtl_UriCharClassRelSegment
,
77
84
rtl_UriCharClassRegName
,
85
92
rtl_UriCharClassUserinfo
,
93
100
rtl_UriCharClassPchar
,
101
108
rtl_UriCharClassUnoParamValue
,
109
110
rtl_UriCharClass_FORCE_EQUAL_SIZE
= SAL_MAX_ENUM
111
}
112
rtl_UriCharClass
;
113
117
typedef
enum
118
{
126
rtl_UriEncodeIgnoreEscapes
,
127
137
rtl_UriEncodeKeepEscapes
,
138
148
rtl_UriEncodeCheckEscapes
,
149
155
rtl_UriEncodeStrict
,
156
162
rtl_UriEncodeStrictKeepEscapes
,
163
164
rtl_UriEncode_FORCE_EQUAL_SIZE
= SAL_MAX_ENUM
165
}
166
rtl_UriEncodeMechanism
;
167
171
typedef
enum
172
{
175
rtl_UriDecodeNone
,
176
184
rtl_UriDecodeToIuri
,
185
191
rtl_UriDecodeWithCharset
,
192
198
rtl_UriDecodeStrict
,
199
200
rtl_UriDecode_FORCE_EQUAL_SIZE
= SAL_MAX_ENUM
201
}
202
rtl_UriDecodeMechanism
;
203
215
SAL_DLLPUBLIC
sal_Bool
const
* SAL_CALL
rtl_getUriCharClass
(
rtl_UriCharClass
eCharClass)
216
SAL_THROW_EXTERN_C
();
217
252
SAL_DLLPUBLIC
void
SAL_CALL
rtl_uriEncode
(
253
rtl_uString * pText,
254
sal_Bool
const
* pCharClass,
255
rtl_UriEncodeMechanism
eMechanism,
256
rtl_TextEncoding
eCharset,
257
rtl_uString ** pResult)
258
SAL_THROW_EXTERN_C
();
259
290
SAL_DLLPUBLIC
void
SAL_CALL
rtl_uriDecode
(
291
rtl_uString * pText,
292
rtl_UriDecodeMechanism
eMechanism,
293
rtl_TextEncoding
eCharset,
294
rtl_uString ** pResult)
295
SAL_THROW_EXTERN_C
();
296
339
SAL_DLLPUBLIC
sal_Bool
SAL_CALL
rtl_uriConvertRelToAbs
(
340
rtl_uString * pBaseUriRef,
341
rtl_uString * pRelUriRef,
342
rtl_uString ** pResult,
343
rtl_uString ** pException)
344
SAL_THROW_EXTERN_C
();
345
346
#if defined __cplusplus
347
}
348
#endif
/* __cplusplus */
349
350
#endif
/* _RTL_URI_H_ */
351
352
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Generated on Thu Oct 31 2013 06:18:06 for LibreOffice by
1.8.1.2