@@ -113,7 +113,7 @@ FlValue* fl_value_new_float(double value);
113
113
114
114
/**
115
115
* fl_value_new_string:
116
- * @value: a nul terminated UTF-8 string.
116
+ * @value: a %NULL- terminated UTF-8 string.
117
117
*
118
118
* Creates an #FlValue that contains UTF-8 text. The equivalent Dart type is a
119
119
* String.
@@ -123,7 +123,7 @@ FlValue* fl_value_new_float(double value);
123
123
FlValue * fl_value_new_string (const gchar * value );
124
124
125
125
/**
126
- * fl_value_new_string :
126
+ * fl_value_new_string_sized :
127
127
* @value: a buffer containing UTF-8 text. It does not require a nul terminator.
128
128
* @value_length: the number of bytes to use from @value.
129
129
*
@@ -136,7 +136,7 @@ FlValue* fl_value_new_string_sized(const gchar* value, size_t value_length);
136
136
137
137
/**
138
138
* fl_value_new_uint8_list:
139
- * @value: an arrary of unsigned 8 bit integers.
139
+ * @value: an array of unsigned 8 bit integers.
140
140
* @value_length: number of elements in @value.
141
141
*
142
142
* Creates an ordered list containing 8 bit unsigned integers. The data is
@@ -147,7 +147,7 @@ FlValue* fl_value_new_string_sized(const gchar* value, size_t value_length);
147
147
FlValue * fl_value_new_uint8_list (const uint8_t * value , size_t value_length );
148
148
149
149
/**
150
- * fl_value_new_uint8_list :
150
+ * fl_value_new_uint8_list_from_bytes :
151
151
* @value: a #GBytes.
152
152
*
153
153
* Creates an ordered list containing 8 bit unsigned integers. The data is
@@ -159,7 +159,7 @@ FlValue* fl_value_new_uint8_list_from_bytes(GBytes* value);
159
159
160
160
/**
161
161
* fl_value_new_int32_list:
162
- * @value: an arrary of signed 32 bit integers.
162
+ * @value: an array of signed 32 bit integers.
163
163
* @value_length: number of elements in @value.
164
164
*
165
165
* Creates an ordered list containing 32 bit integers. The equivalent Dart type
@@ -171,7 +171,7 @@ FlValue* fl_value_new_int32_list(const int32_t* value, size_t value_length);
171
171
172
172
/**
173
173
* fl_value_new_int64_list:
174
- * @value: an arrary of signed 64 bit integers.
174
+ * @value: an array of signed 64 bit integers.
175
175
* @value_length: number of elements in @value.
176
176
*
177
177
* Creates an ordered list containing 64 bit integers. The equivalent Dart type
@@ -183,7 +183,7 @@ FlValue* fl_value_new_int64_list(const int64_t* value, size_t value_length);
183
183
184
184
/**
185
185
* fl_value_new_float_list:
186
- * @value: an arrary of floating point numbers.
186
+ * @value: an array of floating point numbers.
187
187
* @value_length: number of elements in @value.
188
188
*
189
189
* Creates an ordered list containing floating point numbers. The equivalent
@@ -283,7 +283,7 @@ FlValue* fl_value_ref(FlValue* value);
283
283
* fl_value_unref:
284
284
* @value: an #FlValue.
285
285
*
286
- * Dereases the reference count of an #FlValue. When the refernece count hits
286
+ * Decreases the reference count of an #FlValue. When the reference count hits
287
287
* zero @value is destroyed and no longer valid.
288
288
*/
289
289
void fl_value_unref (FlValue * value );
@@ -323,7 +323,7 @@ bool fl_value_equal(FlValue* a, FlValue* b);
323
323
void fl_value_append (FlValue * value , FlValue * child );
324
324
325
325
/**
326
- * fl_value_append :
326
+ * fl_value_append_take :
327
327
* @value: an #FlValue of type #FL_VALUE_TYPE_LIST.
328
328
* @child: (transfer full): an #FlValue.
329
329
*
@@ -410,13 +410,13 @@ bool fl_value_get_bool(FlValue* value);
410
410
int64_t fl_value_get_int (FlValue * value );
411
411
412
412
/**
413
- * fl_value_get_double :
413
+ * fl_value_get_float :
414
414
* @value: an #FlValue of type #FL_VALUE_TYPE_FLOAT.
415
415
*
416
416
* Gets the floating point number of @value. Calling this with an #FlValue
417
417
* that is not of type #FL_VALUE_TYPE_FLOAT is a programming error.
418
418
*
419
- * Returns: a UTF-8 encoded string .
419
+ * Returns: a floating point number .
420
420
*/
421
421
double fl_value_get_float (FlValue * value );
422
422
@@ -511,7 +511,7 @@ FlValue* fl_value_get_list_value(FlValue* value, size_t index);
511
511
* @value: an #FlValue of type #FL_VALUE_TYPE_MAP.
512
512
* @index: an index in the map.
513
513
*
514
- * Gets an key from the map. It is a programming error to request an index that
514
+ * Gets a key from the map. It is a programming error to request an index that
515
515
* is outside the size of the list as returned from fl_value_get_length().
516
516
* Calling this with an #FlValue that is not of type #FL_VALUE_TYPE_MAP is a
517
517
* programming error.
@@ -521,7 +521,7 @@ FlValue* fl_value_get_list_value(FlValue* value, size_t index);
521
521
FlValue * fl_value_get_map_key (FlValue * value , size_t index );
522
522
523
523
/**
524
- * fl_value_get_map_key :
524
+ * fl_value_get_map_value :
525
525
* @value: an #FlValue of type #FL_VALUE_TYPE_MAP.
526
526
* @index: an index in the map.
527
527
*
@@ -543,8 +543,8 @@ FlValue* fl_value_get_map_value(FlValue* value, size_t index);
543
543
* fl_value_equal(). Calling this with an #FlValue that is not of type
544
544
* #FL_VALUE_TYPE_MAP is a programming error.
545
545
*
546
- * Map lookups are not optimised for performance - if have a large map or need
547
- * frequent access you should copy the data into another structure, e.g.
546
+ * Map lookups are not optimised for performance - if you have a large map or
547
+ * need frequent access you should copy the data into another structure, e.g.
548
548
* #GHashTable.
549
549
*
550
550
* Returns: (allow-none): the value with this key or %NULL if not one present.
@@ -560,8 +560,8 @@ FlValue* fl_value_lookup(FlValue* value, FlValue* key);
560
560
* fl_value_equal(). Calling this with an #FlValue that is not of type
561
561
* #FL_VALUE_TYPE_MAP is a programming error.
562
562
*
563
- * Map lookups are not optimised for performance - if have a large map or need
564
- * frequent access you should copy the data into another structure, e.g.
563
+ * Map lookups are not optimised for performance - if you have a large map or
564
+ * need frequent access you should copy the data into another structure, e.g.
565
565
* #GHashTable.
566
566
*
567
567
* Returns: (allow-none): the value with this key or %NULL if not one present.
@@ -573,7 +573,7 @@ FlValue* fl_value_lookup_string(FlValue* value, const gchar* key);
573
573
* @value: an #FlValue.
574
574
*
575
575
* Converts an #FlValue to a text representation, suitable for logging purposes.
576
- * The text is formatted to be match the equivalent Dart toString() methods.
576
+ * The text is formatted to be the equivalent of Dart toString() methods.
577
577
*
578
578
* Returns: UTF-8 text.
579
579
*/
0 commit comments