2015-12-10 18:09:04 +00:00
|
|
|
/**
|
2018-09-11 22:27:47 +00:00
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
2015-12-10 18:09:04 +00:00
|
|
|
*
|
2018-02-17 02:24:55 +00:00
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
2015-12-10 18:09:04 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
2016-11-23 15:47:52 +00:00
|
|
|
#import <React/RCTDefines.h>
|
2015-12-10 18:09:04 +00:00
|
|
|
|
|
|
|
@interface RCTParserUtils : NSObject
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Generic utility functions for parsing Objective-C source code.
|
|
|
|
*/
|
|
|
|
RCT_EXTERN BOOL RCTReadChar(const char **input, char c);
|
|
|
|
RCT_EXTERN BOOL RCTReadString(const char **input, const char *string);
|
|
|
|
RCT_EXTERN void RCTSkipWhitespace(const char **input);
|
2017-08-14 12:16:45 +00:00
|
|
|
RCT_EXTERN BOOL RCTParseSelectorIdentifier(const char **input, NSString **string);
|
|
|
|
RCT_EXTERN BOOL RCTParseArgumentIdentifier(const char **input, NSString **string);
|
2015-12-10 18:09:04 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Parse an Objective-C type into a form that can be used by RCTConvert.
|
|
|
|
* This doesn't really belong here, but it's used by both RCTConvert and
|
|
|
|
* RCTModuleMethod, which makes it difficult to find a better home for it.
|
|
|
|
*/
|
|
|
|
RCT_EXTERN NSString *RCTParseType(const char **input);
|
|
|
|
|
|
|
|
@end
|