aboutsummaryrefslogtreecommitdiff
path: root/include/cru/base/platform/osx/Convert.h
blob: 395cbbae4a56059b9f379a8f18667adc07998ce8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once
#include "../../PreConfig.h"

#ifndef CRU_PLATFORM_OSX
#error "This file can only be included on osx."
#endif

#include "../../String.h"

#include <CoreFoundation/CoreFoundation.h>

namespace cru::platform::osx {
CFStringRef Convert(const String& string);
String Convert(CFStringRef string);

CFRange Convert(const Range& range);
Range Convert(const CFRange& range);
}  // namespace cru::platform::osx