update credits
[LibreOffice.git] / sal / rtl / strimp.hxx
blobf54b88231fed40b8cdd9ec3cb2a5df522b5aeffc
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 INCLUDED_RTL_SOURCE_STRIMP_HXX
21 #define INCLUDED_RTL_SOURCE_STRIMP_HXX
23 #include <osl/interlck.h>
25 #include "sal/types.h"
27 /* ======================================================================= */
28 /* Help functions for String and UString */
29 /* ======================================================================= */
32 * refCount is opaqueincludes 2 bit-fields;
33 * MSB: 'interned' - is stored in the intern hash
34 * MSB-1: 'static' - is a const / static string,
35 * do no ref counting
37 #define SAL_STRING_INTERN_FLAG 0x80000000
38 #define SAL_STRING_STATIC_FLAG 0x40000000
39 #define SAL_STRING_REFCOUNT(a) ((a) & 0x3fffffff)
41 #define SAL_STRING_IS_INTERN(a) ((a)->refCount & SAL_STRING_INTERN_FLAG)
42 #define SAL_STRING_IS_STATIC(a) ((a)->refCount & SAL_STRING_STATIC_FLAG)
44 sal_Int16 rtl_ImplGetDigit( sal_Unicode ch, sal_Int16 nRadix );
46 sal_Bool rtl_ImplIsWhitespace( sal_Unicode c );
48 // string lifetime instrumentation / diagnostics
49 # define RTL_LOG_STRING_NEW(s)
50 # define RTL_LOG_STRING_DELETE(s)
52 #endif /* INCLUDED_RTL_SOURCE_STRIMP_HXX */
54 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */