Apache Log4cxx
Version 2.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
logstring.h
Go to the documentation of this file.
1
/*
2
* Licensed to the Apache Software Foundation (ASF) under one or more
3
* contributor license agreements. See the NOTICE file distributed with
4
* this work for additional information regarding copyright ownership.
5
* The ASF licenses this file to You under the Apache License, Version 2.0
6
* (the "License"); you may not use this file except in compliance with
7
* the License. You may obtain a copy of the License at
8
*
9
* http://www.apache.org/licenses/LICENSE-2.0
10
*
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS,
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
* See the License for the specific language governing permissions and
15
* limitations under the License.
16
*/
17
18
#ifndef _LOG4CXX_STRING_H
19
#define _LOG4CXX_STRING_H
20
21
#include <string>
22
#include <log4cxx/log4cxx.h>
23
24
#if (LOG4CXX_LOGCHAR_IS_WCHAR + LOG4CXX_LOGCHAR_IS_UTF8)>1
25
#error only one of LOG4CXX_LOGCHAR_IS_WCHAR or LOG4CXX_LOGCHAR_IS_UTF8 may be true
26
#endif
27
28
#if LOG4CXX_CFSTRING_API
29
extern
"C"
{
30
typedef
const
struct
__CFString*
CFStringRef
;
31
}
32
#endif
33
34
namespace
LOG4CXX_NS
35
{
36
37
#if LOG4CXX_LOGCHAR_IS_WCHAR
38
typedef
wchar_t
logchar;
39
#define LOG4CXX_STR(str) L ## str
40
#endif
41
42
#if LOG4CXX_LOGCHAR_IS_UTF8
43
typedef
char
logchar;
44
#if LOG4CXX_CHARSET_EBCDIC
45
#define LOG4CXX_STR(str) LOG4CXX_NS::helpers::Transcoder::decode(str)
46
#else
47
#define LOG4CXX_STR(str) str
48
#endif
49
#endif
50
51
typedef
std::basic_string<logchar>
LogString
;
52
53
}
54
55
#if !defined(LOG4CXX_EOL)
56
#if defined(_WIN32)
57
#define LOG4CXX_EOL LOG4CXX_STR("\x0D\x0A")
58
#else
59
#define LOG4CXX_EOL LOG4CXX_STR("\x0A")
60
#endif
61
#endif
62
63
64
#if LOG4CXX_LOGCHAR_IS_UTF8 && LOG4CXX_CHARSET_EBCDIC
65
#include <
log4cxx/helpers/transcoder.h
>
66
#endif
67
68
#endif
//_LOG4CXX_STRING_H
transcoder.h
CFStringRef
const struct __CFString * CFStringRef
Definition
logstring.h:30
log4cxx::LogString
std::basic_string< logchar > LogString
Definition
logstring.h:51
src
main
include
log4cxx
logstring.h
Generated by
1.18.0 on
SITE_PUBLISHED_DATE
Copyright © 2017-2026
Apache Software Foundation
. Apache, Chainsaw, log4cxx, Log4j, Log4net, log4php and the Apache logo are
trademarks or registered trademarks
of The Apache Software Foundation.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.
Privacy Policy
.