forked from OSchip/llvm-project
parent
07d956149b
commit
eacb0929e8
|
@ -45,26 +45,6 @@
|
|||
#include "CFBundle.h"
|
||||
#include "CFString.h"
|
||||
|
||||
static void SplitEventData(const char *data, std::vector<std::string> &elements)
|
||||
{
|
||||
elements.clear();
|
||||
if (!data)
|
||||
return;
|
||||
|
||||
const char *start = data;
|
||||
|
||||
while (*start != '\0') {
|
||||
const char *token = strchr(start, ':');
|
||||
if (!token) {
|
||||
elements.push_back(std::string(start));
|
||||
return;
|
||||
}
|
||||
if (token != start)
|
||||
elements.push_back(std::string(start, token - start));
|
||||
start = ++token;
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef WITH_SPRINGBOARD
|
||||
|
||||
#include <CoreFoundation/CoreFoundation.h>
|
||||
|
@ -210,6 +190,28 @@ static bool CallBoardSystemServiceOpenApplication(NSString *bundleIDNSStr,
|
|||
}
|
||||
#endif
|
||||
|
||||
#if defined(WITH_FBS) || defined(WITH_FBS)
|
||||
static void SplitEventData(const char *data, std::vector<std::string> &elements)
|
||||
{
|
||||
elements.clear();
|
||||
if (!data)
|
||||
return;
|
||||
|
||||
const char *start = data;
|
||||
|
||||
while (*start != '\0') {
|
||||
const char *token = strchr(start, ':');
|
||||
if (!token) {
|
||||
elements.push_back(std::string(start));
|
||||
return;
|
||||
}
|
||||
if (token != start)
|
||||
elements.push_back(std::string(start, token - start));
|
||||
start = ++token;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef WITH_BKS
|
||||
#import <Foundation/Foundation.h>
|
||||
extern "C" {
|
||||
|
|
Loading…
Reference in New Issue