mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
C++ - better => butter
Summary: Renaming the `better` utilities to `butter`: - to prevent claims that this library is superior to others - it really depends on use cases - to indicate ease of use throughout the codebase, easily spread like butter Changelog: [C++][Changed] Renaming C++ better util to butter, used by Fabric internals Reviewed By: JoshuaGross Differential Revision: D33242764 fbshipit-source-id: 26dc95d9597c61ce8e66708e44ed545e0fc5cff5
This commit is contained in:
committed by
Facebook GitHub Bot
parent
b4dab1a537
commit
fb39d45ed5
@@ -157,7 +157,7 @@ const StructTemplate = ({
|
||||
};
|
||||
|
||||
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, ${structName} &result) {
|
||||
auto map = (better::map<std::string, RawValue>)value;
|
||||
auto map = (butter::map<std::string, RawValue>)value;
|
||||
|
||||
${fromCases}
|
||||
}
|
||||
|
||||
+12
-12
@@ -84,7 +84,7 @@ struct ArrayPropsNativeComponentObjectStruct {
|
||||
};
|
||||
|
||||
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, ArrayPropsNativeComponentObjectStruct &result) {
|
||||
auto map = (better::map<std::string, RawValue>)value;
|
||||
auto map = (butter::map<std::string, RawValue>)value;
|
||||
|
||||
auto tmp_stringProp = map.find(\\"stringProp\\");
|
||||
if (tmp_stringProp != map.end()) {
|
||||
@@ -111,7 +111,7 @@ struct ArrayPropsNativeComponentArrayObjectStruct {
|
||||
};
|
||||
|
||||
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, ArrayPropsNativeComponentArrayObjectStruct &result) {
|
||||
auto map = (better::map<std::string, RawValue>)value;
|
||||
auto map = (butter::map<std::string, RawValue>)value;
|
||||
|
||||
auto tmp_stringProp = map.find(\\"stringProp\\");
|
||||
if (tmp_stringProp != map.end()) {
|
||||
@@ -138,7 +138,7 @@ struct ArrayPropsNativeComponentArrayStruct {
|
||||
};
|
||||
|
||||
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, ArrayPropsNativeComponentArrayStruct &result) {
|
||||
auto map = (better::map<std::string, RawValue>)value;
|
||||
auto map = (butter::map<std::string, RawValue>)value;
|
||||
|
||||
auto tmp_object = map.find(\\"object\\");
|
||||
if (tmp_object != map.end()) {
|
||||
@@ -165,7 +165,7 @@ struct ArrayPropsNativeComponentArrayOfArrayOfObjectStruct {
|
||||
};
|
||||
|
||||
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, ArrayPropsNativeComponentArrayOfArrayOfObjectStruct &result) {
|
||||
auto map = (better::map<std::string, RawValue>)value;
|
||||
auto map = (butter::map<std::string, RawValue>)value;
|
||||
|
||||
auto tmp_stringProp = map.find(\\"stringProp\\");
|
||||
if (tmp_stringProp != map.end()) {
|
||||
@@ -247,7 +247,7 @@ struct ArrayPropsNativeComponentNativePrimitivesStruct {
|
||||
};
|
||||
|
||||
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, ArrayPropsNativeComponentNativePrimitivesStruct &result) {
|
||||
auto map = (better::map<std::string, RawValue>)value;
|
||||
auto map = (butter::map<std::string, RawValue>)value;
|
||||
|
||||
auto tmp_colors = map.find(\\"colors\\");
|
||||
if (tmp_colors != map.end()) {
|
||||
@@ -1022,7 +1022,7 @@ struct ObjectPropsObjectPropObjectArrayPropStruct {
|
||||
};
|
||||
|
||||
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, ObjectPropsObjectPropObjectArrayPropStruct &result) {
|
||||
auto map = (better::map<std::string, RawValue>)value;
|
||||
auto map = (butter::map<std::string, RawValue>)value;
|
||||
|
||||
auto tmp_array = map.find(\\"array\\");
|
||||
if (tmp_array != map.end()) {
|
||||
@@ -1041,7 +1041,7 @@ struct ObjectPropsObjectPropObjectPrimitiveRequiredPropStruct {
|
||||
};
|
||||
|
||||
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, ObjectPropsObjectPropObjectPrimitiveRequiredPropStruct &result) {
|
||||
auto map = (better::map<std::string, RawValue>)value;
|
||||
auto map = (butter::map<std::string, RawValue>)value;
|
||||
|
||||
auto tmp_image = map.find(\\"image\\");
|
||||
if (tmp_image != map.end()) {
|
||||
@@ -1066,7 +1066,7 @@ struct ObjectPropsObjectPropNestedPropANestedPropBStruct {
|
||||
};
|
||||
|
||||
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, ObjectPropsObjectPropNestedPropANestedPropBStruct &result) {
|
||||
auto map = (better::map<std::string, RawValue>)value;
|
||||
auto map = (butter::map<std::string, RawValue>)value;
|
||||
|
||||
auto tmp_nestedPropC = map.find(\\"nestedPropC\\");
|
||||
if (tmp_nestedPropC != map.end()) {
|
||||
@@ -1083,7 +1083,7 @@ struct ObjectPropsObjectPropNestedPropAStruct {
|
||||
};
|
||||
|
||||
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, ObjectPropsObjectPropNestedPropAStruct &result) {
|
||||
auto map = (better::map<std::string, RawValue>)value;
|
||||
auto map = (butter::map<std::string, RawValue>)value;
|
||||
|
||||
auto tmp_nestedPropB = map.find(\\"nestedPropB\\");
|
||||
if (tmp_nestedPropB != map.end()) {
|
||||
@@ -1100,7 +1100,7 @@ struct ObjectPropsObjectPropNestedArrayAsPropertyArrayPropStruct {
|
||||
};
|
||||
|
||||
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, ObjectPropsObjectPropNestedArrayAsPropertyArrayPropStruct &result) {
|
||||
auto map = (better::map<std::string, RawValue>)value;
|
||||
auto map = (butter::map<std::string, RawValue>)value;
|
||||
|
||||
auto tmp_stringProp = map.find(\\"stringProp\\");
|
||||
if (tmp_stringProp != map.end()) {
|
||||
@@ -1127,7 +1127,7 @@ struct ObjectPropsObjectPropNestedArrayAsPropertyStruct {
|
||||
};
|
||||
|
||||
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, ObjectPropsObjectPropNestedArrayAsPropertyStruct &result) {
|
||||
auto map = (better::map<std::string, RawValue>)value;
|
||||
auto map = (butter::map<std::string, RawValue>)value;
|
||||
|
||||
auto tmp_arrayProp = map.find(\\"arrayProp\\");
|
||||
if (tmp_arrayProp != map.end()) {
|
||||
@@ -1153,7 +1153,7 @@ struct ObjectPropsObjectPropStruct {
|
||||
};
|
||||
|
||||
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, ObjectPropsObjectPropStruct &result) {
|
||||
auto map = (better::map<std::string, RawValue>)value;
|
||||
auto map = (butter::map<std::string, RawValue>)value;
|
||||
|
||||
auto tmp_stringProp = map.find(\\"stringProp\\");
|
||||
if (tmp_stringProp != map.end()) {
|
||||
|
||||
Reference in New Issue
Block a user