UDK 3.2.7 C/C++ API Reference

rtl/ustrbuf.h

Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
00002 /*
00003  * This file is part of the LibreOffice project.
00004  *
00005  * This Source Code Form is subject to the terms of the Mozilla Public
00006  * License, v. 2.0. If a copy of the MPL was not distributed with this
00007  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
00008  *
00009  * This file incorporates work covered by the following license notice:
00010  *
00011  *   Licensed to the Apache Software Foundation (ASF) under one or more
00012  *   contributor license agreements. See the NOTICE file distributed
00013  *   with this work for additional information regarding copyright
00014  *   ownership. The ASF licenses this file to you under the Apache
00015  *   License, Version 2.0 (the "License"); you may not use this file
00016  *   except in compliance with the License. You may obtain a copy of
00017  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
00018  */
00019 
00020 #ifndef _RTL_USTRBUF_H_
00021 #define _RTL_USTRBUF_H_
00022 
00023 #include "sal/config.h"
00024 
00025 #include "rtl/ustring.h"
00026 #include "sal/saldllapi.h"
00027 
00028 #ifdef __cplusplus
00029 extern "C" {
00030 #endif
00031 
00043 SAL_DLLPUBLIC void SAL_CALL rtl_uStringbuffer_newFromStr_WithLength(
00044                                                       rtl_uString ** newStr,
00045                                                       const sal_Unicode * value,
00046                                                       sal_Int32 count );
00047 
00063 SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_uStringbuffer_newFromStringBuffer(
00064                                                           rtl_uString ** newStr,
00065                                                           sal_Int32 capacity,
00066                                                           rtl_uString * oldStr );
00067 
00085 SAL_DLLPUBLIC void SAL_CALL rtl_uStringbuffer_ensureCapacity(
00086                                                 /*inout*/rtl_uString ** This,
00087                                                 /*inout*/sal_Int32* capacity,
00088                                                 sal_Int32 minimumCapacity);
00089 
00105 SAL_DLLPUBLIC void SAL_CALL rtl_uStringbuffer_insert(
00106                                         /*inout*/rtl_uString ** This,
00107                                         /*inout*/sal_Int32 * capacity,
00108                                         sal_Int32 offset,
00109                                         const sal_Unicode * str,
00110                                         sal_Int32 len);
00111 
00129 SAL_DLLPUBLIC void SAL_CALL rtl_uStringbuffer_insertUtf32(
00130     rtl_uString ** pThis, sal_Int32 * capacity, sal_Int32 offset, sal_uInt32 c)
00131     SAL_THROW_EXTERN_C();
00132 
00153 SAL_DLLPUBLIC void SAL_CALL rtl_uStringbuffer_insert_ascii(
00154                                                 /*inout*/rtl_uString ** This,
00155                                                 /*inout*/sal_Int32 * capacity,
00156                                                 sal_Int32 offset,
00157                                                 const sal_Char * str,
00158                                                 sal_Int32 len);
00159 
00171 SAL_DLLPUBLIC void SAL_CALL rtl_uStringbuffer_remove(
00172                                        /*inout*/rtl_uString ** This,
00173                                        sal_Int32 start,
00174                                        sal_Int32 len );
00175 
00187 SAL_DLLPUBLIC rtl_uString * SAL_CALL rtl_uStringBuffer_makeStringAndClear(
00188                                         /*inout*/ rtl_uString ** ppThis,
00189                                         sal_Int32 *nCapacity );
00190 
00202 SAL_DLLPUBLIC rtl_uString * SAL_CALL rtl_uStringBuffer_refReturn( rtl_uString *pThis );
00203 
00204 #ifdef __cplusplus
00205 }
00206 #endif
00207 
00208 #endif  /* _RTL_USTRBUF_H_ */
00209 
00210 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines