mirror of
https://github.com/php/doc-es.git
synced 2026-03-26 00:12:06 +01:00
98 lines
3.2 KiB
XML
98 lines
3.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- EN-Revision: 78cc29837ed269491a4fc330797c7184eca7ed2f Maintainer: PhilDaiguille Status: ready -->
|
|
<!-- Reviewed: no -->
|
|
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="function.simdjson-key-count">
|
|
<refnamediv>
|
|
<refname>simdjson_key_count</refname>
|
|
<refpurpose>Devuelve el valor a un puntero JSON.</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>int</type><methodname>simdjson_key_count</methodname>
|
|
<methodparam><type>string</type><parameter>json</parameter></methodparam>
|
|
<methodparam><type>string</type><parameter>key</parameter></methodparam>
|
|
<methodparam choice="opt"><type>int</type><parameter>depth</parameter><initializer>512</initializer></methodparam>
|
|
<methodparam choice="opt"><type>bool</type><parameter>throw_if_uncountable</parameter><initializer>&false;</initializer></methodparam>
|
|
</methodsynopsis>
|
|
<simpara>
|
|
Cuenta el número de elementos del objeto/array encontrado en el puntero JSON solicitado.
|
|
</simpara>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>json</parameter></term>
|
|
<listitem>
|
|
<simpara>
|
|
El <type>string</type> <parameter>json</parameter> a consultar.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>key</parameter></term>
|
|
<listitem>
|
|
<simpara>
|
|
El <type>string</type> del puntero JSON.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>depth</parameter></term>
|
|
<listitem>
|
|
<simpara>
|
|
La profundidad máxima de la estructura a decodificar.
|
|
El valor debe ser superior a <literal>0</literal>,
|
|
e inferior o igual a <literal>2147483647</literal>.
|
|
|
|
Aquellos que llamen a esta función deberían utilizar valores razonablemente pequeños,
|
|
ya que profundidades mayores requieren más espacio de búfer y aumentarán
|
|
la profundidad de recursión, a diferencia de la implementación actual de <function>json_decode</function>.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>throw_if_uncountable</parameter></term>
|
|
<listitem>
|
|
<simpara>
|
|
Cuando es verdadero, se lanzará una <classname>SimdJsonException</classname>
|
|
en lugar de devolver 0 cuando el valor apuntado por el JSON no es ni
|
|
un objeto ni un array.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<simpara>
|
|
Devuelve un &integer; con el número de elementos del valor en el puntero JSON dado.
|
|
</simpara>
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|