Files
acceptance-tests
data
debian
docs
external
Newtonsoft.Json
api-doc-tools
api-snapshot
aspnetwebstack
bdwgc
binary-reference-assemblies
bockbuild
boringssl
cecil
cecil-legacy
corefx
corert
helix-binaries
ikdasm
ikvm
illinker-test-assets
linker
llvm-project
clang
clang-tools-extra
compiler-rt
libcxx
libcxxabi
libunwind
lld
lldb
cmake
docs
examples
include
lit
lldb.xcodeproj
lldb.xcworkspace
packages
resources
scripts
source
API
Breakpoint
Commands
Core
DataFormatters
Expression
Host
android
common
freebsd
linux
macosx
cfcpp
CFCBundle.cpp
CFCBundle.h
CFCData.cpp
CFCData.h
CFCMutableArray.cpp
CFCMutableArray.h
CFCMutableDictionary.cpp
CFCMutableDictionary.h
CFCMutableSet.cpp
CFCMutableSet.h
CFCReleaser.h
CFCString.cpp
CFCString.h
CoreFoundationCPP.h
Host.mm
HostInfoMacOSX.mm
HostThreadMacOSX.mm
Symbols.cpp
netbsd
openbsd
posix
windows
CMakeLists.txt
Initialization
Interpreter
Plugins
Symbol
Target
Utility
CMakeLists.txt
lldb.cpp
third_party
tools
unittests
utils
www
.arcconfig
.clang-format
.gitignore
CMakeLists.txt
CODE_OWNERS.txt
INSTALL.txt
LICENSE.TXT
use_lldb_suite_root.py
llvm
openmp
polly
nuget-buildtasks
nunit-lite
roslyn-binaries
rx
xunit-binaries
how-to-bump-roslyn-binaries.md
ikvm-native
llvm
m4
man
mcs
mk
mono
msvc
netcore
po
runtime
samples
scripts
support
tools
COPYING.LIB
LICENSE
Makefile.am
Makefile.in
NEWS
README.md
acinclude.m4
aclocal.m4
autogen.sh
code_of_conduct.md
compile
config.guess
config.h.in
config.rpath
config.sub
configure.REMOVED.git-id
configure.ac.REMOVED.git-id
depcomp
install-sh
ltmain.sh.REMOVED.git-id
missing
mkinstalldirs
mono-uninstalled.pc.in
test-driver
winconfig.h

42 lines
1.6 KiB
C
Raw Normal View History

//===-- CFCString.h ---------------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef CoreFoundationCPP_CFString_h_
#define CoreFoundationCPP_CFString_h_
#include <iosfwd>
#include "CFCReleaser.h"
class CFCString : public CFCReleaser<CFStringRef> {
public:
//------------------------------------------------------------------
// Constructors and Destructors
//------------------------------------------------------------------
CFCString(CFStringRef cf_str = NULL);
CFCString(const char *s, CFStringEncoding encoding = kCFStringEncodingUTF8);
CFCString(const CFCString &rhs);
CFCString &operator=(const CFCString &rhs);
virtual ~CFCString();
const char *GetFileSystemRepresentation(std::string &str);
CFStringRef SetFileSystemRepresentation(const char *path);
CFStringRef SetFileSystemRepresentationFromCFType(CFTypeRef cf_type);
CFStringRef SetFileSystemRepresentationAndExpandTilde(const char *path);
const char *UTF8(std::string &str);
CFIndex GetLength() const;
static const char *UTF8(CFStringRef cf_str, std::string &str);
static const char *FileSystemRepresentation(CFStringRef cf_str,
std::string &str);
static const char *ExpandTildeInPath(const char *path,
std::string &expanded_path);
};
#endif // #ifndef CoreFoundationCPP_CFString_h_