2001-03-16 07:54:23 -06:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 06:07:47 -05:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2001-03-16 07:54:23 -06:00
|
|
|
*
|
2008-04-10 06:07:47 -05:00
|
|
|
* Copyright 2008 by Sun Microsystems, Inc.
|
2001-03-16 07:54:23 -06:00
|
|
|
*
|
2008-04-10 06:07:47 -05:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2001-03-16 07:54:23 -06:00
|
|
|
*
|
2008-04-10 06:07:47 -05:00
|
|
|
* $RCSfile: strimp.h,v $
|
|
|
|
* $Revision: 1.5 $
|
2001-03-16 07:54:23 -06:00
|
|
|
*
|
2008-04-10 06:07:47 -05:00
|
|
|
* This file is part of OpenOffice.org.
|
2001-03-16 07:54:23 -06:00
|
|
|
*
|
2008-04-10 06:07:47 -05:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2001-03-16 07:54:23 -06:00
|
|
|
*
|
2008-04-10 06:07:47 -05:00
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2001-03-16 07:54:23 -06:00
|
|
|
*
|
2008-04-10 06:07:47 -05:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2001-03-16 07:54:23 -06:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
2002-11-04 08:36:36 -06:00
|
|
|
#ifndef INCLUDED_RTL_SOURCE_STRIMP_H
|
|
|
|
#define INCLUDED_RTL_SOURCE_STRIMP_H
|
2001-03-16 07:54:23 -06:00
|
|
|
|
2007-04-03 08:05:38 -05:00
|
|
|
#include <osl/interlck.h>
|
|
|
|
|
2002-11-04 08:36:36 -06:00
|
|
|
#include "sal/types.h"
|
2001-03-16 07:54:23 -06:00
|
|
|
|
|
|
|
/* ======================================================================= */
|
|
|
|
/* Help functions for String and UString */
|
|
|
|
/* ======================================================================= */
|
|
|
|
|
2002-11-04 08:36:36 -06:00
|
|
|
#if defined __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
2007-04-03 08:05:38 -05:00
|
|
|
/*
|
|
|
|
* refCount is opaqueincludes 2 bit-fields;
|
|
|
|
* MSB: 'interned' - is stored in the intern hash
|
|
|
|
* MSB-1: 'static' - is a const / static string,
|
|
|
|
* do no ref counting
|
|
|
|
*/
|
|
|
|
#define SAL_STRING_INTERN_FLAG 0x80000000
|
|
|
|
#define SAL_STRING_STATIC_FLAG 0x40000000
|
|
|
|
#define SAL_STRING_REFCOUNT(a) ((a) & 0x3fffffff)
|
|
|
|
|
|
|
|
#define SAL_STRING_IS_INTERN(a) ((a)->refCount & SAL_STRING_INTERN_FLAG)
|
|
|
|
#define SAL_STRING_IS_STATIC(a) ((a)->refCount & SAL_STRING_STATIC_FLAG)
|
|
|
|
|
2001-03-16 07:54:23 -06:00
|
|
|
sal_Int16 rtl_ImplGetDigit( sal_Unicode ch, sal_Int16 nRadix );
|
|
|
|
|
|
|
|
sal_Bool rtl_ImplIsWhitespace( sal_Unicode c );
|
|
|
|
|
2002-11-04 08:36:36 -06:00
|
|
|
#if defined __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
#endif /* INCLUDED_RTL_SOURCE_STRIMP_H */
|