Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_43355755
engine
提交
28497c86
E
engine
项目概览
weixin_43355755
/
engine
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
engine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
28497c86
编写于
10月 29, 2020
作者:
J
J-P Nurmi
提交者:
GitHub
10月 29, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix typos in FlValue docs (#21875)
上级
b457e2dd
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
18 addition
and
18 deletion
+18
-18
shell/platform/linux/public/flutter_linux/fl_value.h
shell/platform/linux/public/flutter_linux/fl_value.h
+18
-18
未找到文件。
shell/platform/linux/public/flutter_linux/fl_value.h
浏览文件 @
28497c86
...
...
@@ -113,7 +113,7 @@ FlValue* fl_value_new_float(double value);
/**
* fl_value_new_string:
* @value: a
nul
terminated UTF-8 string.
* @value: a
%NULL-
terminated UTF-8 string.
*
* Creates an #FlValue that contains UTF-8 text. The equivalent Dart type is a
* String.
...
...
@@ -123,7 +123,7 @@ FlValue* fl_value_new_float(double value);
FlValue
*
fl_value_new_string
(
const
gchar
*
value
);
/**
* fl_value_new_string:
* fl_value_new_string
_sized
:
* @value: a buffer containing UTF-8 text. It does not require a nul terminator.
* @value_length: the number of bytes to use from @value.
*
...
...
@@ -136,7 +136,7 @@ FlValue* fl_value_new_string_sized(const gchar* value, size_t value_length);
/**
* fl_value_new_uint8_list:
* @value: an arra
r
y of unsigned 8 bit integers.
* @value: an array of unsigned 8 bit integers.
* @value_length: number of elements in @value.
*
* 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);
FlValue
*
fl_value_new_uint8_list
(
const
uint8_t
*
value
,
size_t
value_length
);
/**
* fl_value_new_uint8_list:
* fl_value_new_uint8_list
_from_bytes
:
* @value: a #GBytes.
*
* 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);
/**
* fl_value_new_int32_list:
* @value: an arra
r
y of signed 32 bit integers.
* @value: an array of signed 32 bit integers.
* @value_length: number of elements in @value.
*
* 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);
/**
* fl_value_new_int64_list:
* @value: an arra
r
y of signed 64 bit integers.
* @value: an array of signed 64 bit integers.
* @value_length: number of elements in @value.
*
* 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);
/**
* fl_value_new_float_list:
* @value: an arra
r
y of floating point numbers.
* @value: an array of floating point numbers.
* @value_length: number of elements in @value.
*
* Creates an ordered list containing floating point numbers. The equivalent
...
...
@@ -283,7 +283,7 @@ FlValue* fl_value_ref(FlValue* value);
* fl_value_unref:
* @value: an #FlValue.
*
* De
reases the reference count of an #FlValue. When the referne
ce count hits
* De
creases the reference count of an #FlValue. When the referen
ce count hits
* zero @value is destroyed and no longer valid.
*/
void
fl_value_unref
(
FlValue
*
value
);
...
...
@@ -323,7 +323,7 @@ bool fl_value_equal(FlValue* a, FlValue* b);
void
fl_value_append
(
FlValue
*
value
,
FlValue
*
child
);
/**
* fl_value_append:
* fl_value_append
_take
:
* @value: an #FlValue of type #FL_VALUE_TYPE_LIST.
* @child: (transfer full): an #FlValue.
*
...
...
@@ -410,13 +410,13 @@ bool fl_value_get_bool(FlValue* value);
int64_t
fl_value_get_int
(
FlValue
*
value
);
/**
* fl_value_get_
double
:
* fl_value_get_
float
:
* @value: an #FlValue of type #FL_VALUE_TYPE_FLOAT.
*
* Gets the floating point number of @value. Calling this with an #FlValue
* that is not of type #FL_VALUE_TYPE_FLOAT is a programming error.
*
* Returns: a
UTF-8 encoded string
.
* Returns: a
floating point number
.
*/
double
fl_value_get_float
(
FlValue
*
value
);
...
...
@@ -511,7 +511,7 @@ FlValue* fl_value_get_list_value(FlValue* value, size_t index);
* @value: an #FlValue of type #FL_VALUE_TYPE_MAP.
* @index: an index in the map.
*
* Gets a
n
key from the map. It is a programming error to request an index that
* Gets a key from the map. It is a programming error to request an index that
* is outside the size of the list as returned from fl_value_get_length().
* Calling this with an #FlValue that is not of type #FL_VALUE_TYPE_MAP is a
* programming error.
...
...
@@ -521,7 +521,7 @@ FlValue* fl_value_get_list_value(FlValue* value, size_t index);
FlValue
*
fl_value_get_map_key
(
FlValue
*
value
,
size_t
index
);
/**
* fl_value_get_map_
key
:
* fl_value_get_map_
value
:
* @value: an #FlValue of type #FL_VALUE_TYPE_MAP.
* @index: an index in the map.
*
...
...
@@ -543,8 +543,8 @@ FlValue* fl_value_get_map_value(FlValue* value, size_t index);
* fl_value_equal(). Calling this with an #FlValue that is not of type
* #FL_VALUE_TYPE_MAP is a programming error.
*
* Map lookups are not optimised for performance - if
have a large map or need
* frequent access you should copy the data into another structure, e.g.
* Map lookups are not optimised for performance - if
you have a large map or
*
need
frequent access you should copy the data into another structure, e.g.
* #GHashTable.
*
* 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);
* fl_value_equal(). Calling this with an #FlValue that is not of type
* #FL_VALUE_TYPE_MAP is a programming error.
*
* Map lookups are not optimised for performance - if
have a large map or need
* frequent access you should copy the data into another structure, e.g.
* Map lookups are not optimised for performance - if
you have a large map or
*
need
frequent access you should copy the data into another structure, e.g.
* #GHashTable.
*
* 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);
* @value: an #FlValue.
*
* Converts an #FlValue to a text representation, suitable for logging purposes.
* The text is formatted to be
match the equivalent
Dart toString() methods.
* The text is formatted to be
the equivalent of
Dart toString() methods.
*
* Returns: UTF-8 text.
*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录