74 int32_t *outArrayIndex)
FLAPI;
#define FL_NULLABLE
Definition CompilerSupport.h:87
#define FLEECE_PUBLIC
Definition CompilerSupport.h:254
#define FL_ASSUME_NONNULL_BEGIN
Definition CompilerSupport.h:85
#define NODISCARD
Definition CompilerSupport.h:59
#define FL_ASSUME_NONNULL_END
Definition CompilerSupport.h:86
#define FLAPI
Definition CompilerSupport.h:260
NODISCARD FLEECE_PUBLIC FLKeyPath FL_NULLABLE FLKeyPath_New(FLSlice specifier, FLError *FL_NULLABLE outError)
Creates a new FLKeyPath object by compiling a path specifier string.
struct _FLKeyPath * FLKeyPath
A reference to a key path.
Definition FLKeyPath.h:44
FLEECE_PUBLIC void FLKeyPath_Free(FLKeyPath FL_NULLABLE)
Frees a compiled FLKeyPath object.
NODISCARD FLEECE_PUBLIC FLStringResult FLKeyPath_ToString(FLKeyPath path)
Returns a path in string form.
NODISCARD FLEECE_PUBLIC FLValue FL_NULLABLE FLKeyPath_Eval(FLKeyPath, FLValue root)
Evaluates a compiled key-path for a given Fleece root object.
FLEECE_PUBLIC bool FLKeyPath_GetElement(FLKeyPath, size_t i, FLSlice *outDictKey, int32_t *outArrayIndex)
Returns an element of a path, either a key or an array index.
NODISCARD FLEECE_PUBLIC FLValue FL_NULLABLE FLKeyPath_EvalOnce(FLSlice specifier, FLValue root, FLError *FL_NULLABLE outError)
Evaluates a key-path from a specifier string, for a given Fleece root object.
FLEECE_PUBLIC bool FLKeyPath_Equals(FLKeyPath path1, FLKeyPath path2)
Equality test.
FLSliceResult FLStringResult
Definition FLSlice.h:93
FLError
Error codes returned from some API calls.
Definition FLBase.h:48
const struct _FLValue * FLValue
A reference to a value of any type.
Definition FLBase.h:35
A simple reference to a block of memory.
Definition FLSlice.h:45