A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://couchbase.github.io/couchbase-lite-core/C/html/group___f_l_dict.html below:

LiteCore: Fleece Dictionaries

◆ FLDict_AsMutable()

If the dictionary is mutable, returns it cast to FLMutableDict, else NULL.

◆ FLDict_Count()

Returns the number of items in a dictionary, or 0 if the pointer is NULL.

◆ FLDict_Get()

Looks up a key in a dictionary, returning its value.

Returns NULL if the value is not found or if the dictionary is NULL.

◆ FLDict_GetWithKey()

Looks up a key in a dictionary using an FLDictKey.

If the key is found, "hint" data will be stored inside the FLDictKey that will speed up subsequent lookups.

◆ FLDict_IsEmpty()

Returns true if a dictionary is empty (or NULL).

Depending on the dictionary's representation, this can be faster than FLDict_Count(a) == 0

◆ FLDictIterator_Begin()

Initializes a FLDictIterator struct to iterate over a dictionary.

Call FLDictIterator_GetKey and FLDictIterator_GetValue to get the first item, then as long as the item is not NULL, call FLDictIterator_Next to advance.

◆ FLDictIterator_End()

Cleans up after an iterator.

Only needed if (a) the dictionary is a delta, and (b) you stop iterating before the end (i.e. before FLDictIterator_Next returns false.)

◆ FLDictIterator_GetCount()

Returns the number of items remaining to be iterated, including the current one.

◆ FLDictIterator_GetKey()

Returns the current key being iterated over.

This Value will be a string or an integer, or NULL when there are no more keys.

◆ FLDictIterator_GetKeyString()

Returns the current key's string value, or NULL when there are no more keys.

◆ FLDictIterator_GetValue()

Returns the current value being iterated over.

Returns NULL when there are no more values.

◆ FLDictIterator_Next()

Advances the iterator to the next value.

Warning
It is illegal to call this when the iterator is already at the end. In particular, calling this when the dict is empty is always illegal.
◆ FLDictKey_GetString()

Returns the string value of the key (which it was initialized with.)

◆ FLDictKey_Init()

Initializes an FLDictKey struct with a key string.

Warning
The input string's memory MUST remain valid for as long as the FLDictKey is in use! (The FLDictKey stores a pointer to the string, but does not copy it.)
Parameters
string The key string (UTF-8).
Returns
An initialized FLDictKey struct.
◆ kFLEmptyDict

A constant empty array value.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4