Version 4.2.0.1, tag libreoffice-4.2.0.1
[LibreOffice.git] / sal / qa / OStringBuffer / rtl_String_Utils.hxx
bloba824ef9f52705f65388b89eb4571693937b38307
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 .
20 #ifndef _RTL_STRING_UTILS_HXX_
21 #define _RTL_STRING_UTILS_HXX_
23 #ifdef __cplusplus
25 #include <math.h>
26 #include <stdlib.h>
28 #include <sal/types.h>
29 #include <rtl/ustring.h>
30 #include <rtl/string.hxx>
32 sal_Char* cpystr( sal_Char* dst, const sal_Char* src );
33 sal_Char* cpynstr( sal_Char* dst, const sal_Char* src, sal_uInt32 cnt );
35 sal_Bool cmpstr( const sal_Char* str1, const sal_Char* str2, sal_uInt32 len );
36 sal_Bool cmpstr( const sal_Char* str1, const sal_Char* str2 );
37 sal_Bool cmpustr( const sal_Unicode* str1, const sal_Unicode* str2, sal_uInt32 len );
38 sal_Bool cmpustr( const sal_Unicode* str1, const sal_Unicode* str2 );
40 sal_Char* createName( sal_Char* dst, const sal_Char* src, sal_uInt32 cnt );
43 sal_uInt32 AStringLen( const sal_Char *pAStr );
45 //------------------------------------------------------------------------
47 sal_Bool AStringNIsValid( const sal_Char *pAStr,
48 const sal_uInt32 nStrLen
51 //------------------------------------------------------------------------
53 sal_Int32 AStringToUStringCompare( const sal_Unicode *pUStr,
54 const sal_Char *pAStr
57 sal_Int32 AStringToUStringNCompare( const sal_Unicode *pUStr,
58 const sal_Char *pAStr,
59 const sal_uInt32 nAStrCount
62 #endif /* __cplusplus */
64 #endif /* _RTL_STRING_UTILS_HXX */
72 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */