aboutsummaryrefslogtreecommitdiff
path: root/include/cru/common/platform/osx/Convert.hpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-01-25 17:30:46 +0800
committercrupest <crupest@outlook.com>2022-01-25 17:30:46 +0800
commit2ed65999ef6f3e1156427dd3efe04353ae657882 (patch)
tree1c6618099e42887e96351c87cc8ce6b7c61b01f7 /include/cru/common/platform/osx/Convert.hpp
parenta77fb1aaa4aa765ae51b3cb5a1f8d9c8c233b01a (diff)
downloadcru-2ed65999ef6f3e1156427dd3efe04353ae657882.tar.gz
cru-2ed65999ef6f3e1156427dd3efe04353ae657882.tar.bz2
cru-2ed65999ef6f3e1156427dd3efe04353ae657882.zip
...
Diffstat (limited to 'include/cru/common/platform/osx/Convert.hpp')
-rw-r--r--include/cru/common/platform/osx/Convert.hpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/cru/common/platform/osx/Convert.hpp b/include/cru/common/platform/osx/Convert.hpp
new file mode 100644
index 00000000..a583e8da
--- /dev/null
+++ b/include/cru/common/platform/osx/Convert.hpp
@@ -0,0 +1,17 @@
+#pragma once
+#include "../../PreConfig.hpp"
+#ifdef CRU_PLATFORM_OSX
+
+#include "../../String.hpp"
+
+#include <CoreFoundation/CFString.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
+
+#endif