14#ifndef _FLCOLLECTIONS_H
15#define _FLCOLLECTIONS_H
149 void *_private4, *_private5, *_private6, *_private7;
191 uint32_t _private3, private4;
#define FL_NULLABLE
Definition: CompilerSupport.h:74
#define FLEECE_PUBLIC
Definition: CompilerSupport.h:241
#define FL_ASSUME_NONNULL_BEGIN
Definition: CompilerSupport.h:72
#define FLPURE
Definition: CompilerSupport.h:110
#define FL_ASSUME_NONNULL_END
Definition: CompilerSupport.h:73
#define FLAPI
Definition: CompilerSupport.h:247
FLEECE_PUBLIC FLValue FL_NULLABLE FLArray_Get(FLArray FL_NULLABLE, uint32_t index) FLPURE
Returns an value at an array index, or NULL if the index is out of range.
FLEECE_PUBLIC bool FLArray_IsEmpty(FLArray FL_NULLABLE) FLPURE
Returns true if an array is empty (or NULL).
FLEECE_PUBLIC void FLArrayIterator_Begin(FLArray FL_NULLABLE, FLArrayIterator *)
Initializes a FLArrayIterator struct to iterate over an array.
FLEECE_PUBLIC const FLArray kFLEmptyArray
A constant empty array value.
FLEECE_PUBLIC FLValue FL_NULLABLE FLArrayIterator_GetValue(const FLArrayIterator *) FLPURE
Returns the current value being iterated over.
FLEECE_PUBLIC FLMutableArray FL_NULLABLE FLArray_AsMutable(FLArray FL_NULLABLE) FLPURE
If the array is mutable, returns it cast to FLMutableArray, else NULL.
FLEECE_PUBLIC uint32_t FLArrayIterator_GetCount(const FLArrayIterator *) FLPURE
Returns the number of items remaining to be iterated, including the current one.
FLEECE_PUBLIC uint32_t FLArray_Count(FLArray FL_NULLABLE) FLPURE
Returns the number of items in an array, or 0 if the pointer is NULL.
FLEECE_PUBLIC bool FLArrayIterator_Next(FLArrayIterator *)
Advances the iterator to the next value, or returns false if at the end.
FLEECE_PUBLIC FLValue FL_NULLABLE FLArrayIterator_GetValueAt(const FLArrayIterator *, uint32_t offset) FLPURE
Returns a value in the array at the given offset from the current value.
FLEECE_PUBLIC FLValue FL_NULLABLE FLDictIterator_GetKey(const FLDictIterator *) FLPURE
Returns the current key being iterated over.
FLEECE_PUBLIC FLValue FL_NULLABLE FLDictIterator_GetValue(const FLDictIterator *) FLPURE
Returns the current value being iterated over.
FLEECE_PUBLIC FLMutableDict FL_NULLABLE FLDict_AsMutable(FLDict FL_NULLABLE) FLPURE
If the dictionary is mutable, returns it cast to FLMutableDict, else NULL.
FLEECE_PUBLIC uint32_t FLDictIterator_GetCount(const FLDictIterator *) FLPURE
Returns the number of items remaining to be iterated, including the current one.
FLEECE_PUBLIC FLValue FL_NULLABLE FLDict_Get(FLDict FL_NULLABLE, FLSlice keyString) FLPURE
Looks up a key in a dictionary, returning its value.
FLEECE_PUBLIC FLString FLDictKey_GetString(const FLDictKey *)
Returns the string value of the key (which it was initialized with.)
FLEECE_PUBLIC const FLDict kFLEmptyDict
A constant empty array value.
FLEECE_PUBLIC void FLDictIterator_Begin(FLDict FL_NULLABLE, FLDictIterator *)
Initializes a FLDictIterator struct to iterate over a dictionary.
FLEECE_PUBLIC FLDictKey FLDictKey_Init(FLSlice string)
Initializes an FLDictKey struct with a key string.
FLEECE_PUBLIC bool FLDictIterator_Next(FLDictIterator *)
Advances the iterator to the next value, or returns false if at the end.
FLEECE_PUBLIC void FLDictIterator_End(FLDictIterator *)
Cleans up after an iterator.
FLEECE_PUBLIC uint32_t FLDict_Count(FLDict FL_NULLABLE) FLPURE
Returns the number of items in a dictionary, or 0 if the pointer is NULL.
FLEECE_PUBLIC FLValue FL_NULLABLE FLDict_GetWithKey(FLDict FL_NULLABLE, FLDictKey *)
Looks up a key in a dictionary using an FLDictKey.
FLEECE_PUBLIC FLString FLDictIterator_GetKeyString(const FLDictIterator *)
Returns the current key's string value.
FLEECE_PUBLIC bool FLDict_IsEmpty(FLDict FL_NULLABLE) FLPURE
Returns true if a dictionary is empty (or NULL).
struct _FLDict * FLMutableDict
A reference to a mutable dictionary.
Definition: FLBase.h:40
const struct _FLDict * FLDict
A reference to a dictionary (map) value.
Definition: FLBase.h:37
struct _FLArray * FLMutableArray
A reference to a mutable array.
Definition: FLBase.h:39
const struct _FLArray * FLArray
A reference to an array value.
Definition: FLBase.h:36
const struct _FLValue * FLValue
A reference to a value of any type.
Definition: FLBase.h:35
Opaque array iterator.
Definition: FLCollections.h:73
Opaque dictionary iterator.
Definition: FLCollections.h:144
Opaque key for a dictionary.
Definition: FLCollections.h:187
A simple reference to a block of memory.
Definition: FLSlice.h:45