1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
22 #include <osl/interlck.h>
23 #include <rtl/strbuf.hxx>
27 #define RTL_LOG_STRING_BITS 8
30 #include "strtmpl.hxx"
32 /*************************************************************************
33 * rtl_stringbuffer_newFromStr_WithLength
35 void SAL_CALL
rtl_stringbuffer_newFromStr_WithLength( rtl_String
** newStr
,
39 rtl::str::stringbuffer_newFromStr_WithLength(newStr
, value
, count
);
42 /*************************************************************************
43 * rtl_stringbuffer_newFromStringBuffer
45 sal_Int32 SAL_CALL
rtl_stringbuffer_newFromStringBuffer( rtl_String
** newStr
,
49 return rtl::str::stringbuffer_newFromStringBuffer(newStr
, capacity
, oldStr
);
52 /*************************************************************************
53 * rtl_stringbuffer_ensureCapacity
55 void SAL_CALL rtl_stringbuffer_ensureCapacity
56 (rtl_String
** This
, sal_Int32
* capacity
, sal_Int32 minimumCapacity
)
58 rtl::str::stringbuffer_ensureCapacity(This
, capacity
, minimumCapacity
);
61 /*************************************************************************
62 * rtl_stringbuffer_insert
64 void SAL_CALL
rtl_stringbuffer_insert( rtl_String
** This
,
70 rtl::str::stringbuffer_insert(This
, capacity
, offset
, str
, len
);
73 /*************************************************************************
74 * rtl_stringbuffer_remove
76 void SAL_CALL
rtl_stringbuffer_remove( rtl_String
** This
,
80 rtl::str::stringbuffer_remove(This
, start
, len
);
83 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */