From 9c6cab5cbc8be6cca0a0dd9ecc7173631bb1fe18 Mon Sep 17 00:00:00 2001 From: Gina Peter Banyard Date: Sat, 27 Jan 2024 22:40:37 +0000 Subject: [PATCH] Sync ctype with EN --- reference/ctype/configure.xml | 8 ++-- reference/ctype/functions/ctype-alnum.xml | 16 +++---- reference/ctype/functions/ctype-alpha.xml | 22 +++++----- reference/ctype/functions/ctype-cntrl.xml | 22 +++++----- reference/ctype/functions/ctype-digit.xml | 51 ++++------------------ reference/ctype/functions/ctype-graph.xml | 14 +++--- reference/ctype/functions/ctype-lower.xml | 14 +++--- reference/ctype/functions/ctype-print.xml | 14 +++--- reference/ctype/functions/ctype-punct.xml | 14 +++--- reference/ctype/functions/ctype-space.xml | 14 +++--- reference/ctype/functions/ctype-upper.xml | 14 +++--- reference/ctype/functions/ctype-xdigit.xml | 14 +++--- 12 files changed, 82 insertions(+), 135 deletions(-) diff --git a/reference/ctype/configure.xml b/reference/ctype/configure.xml index 38496ca0c..4e1fc83d6 100644 --- a/reference/ctype/configure.xml +++ b/reference/ctype/configure.xml @@ -1,11 +1,11 @@ - - + +
&reftitle.install; - El soporte de ctype se puede desactivar con - . + &installation.enabled.disable; + &windows.builtin;
diff --git a/reference/ctype/functions/ctype-alnum.xml b/reference/ctype/functions/ctype-alnum.xml index fbf95c3bf..12a28e7f7 100644 --- a/reference/ctype/functions/ctype-alnum.xml +++ b/reference/ctype/functions/ctype-alnum.xml @@ -1,6 +1,5 @@ - - + @@ -12,7 +11,7 @@ &reftitle.description; boolctype_alnum - stringtext + mixedtext Chequea si todos los caracteres en la string entregada, @@ -29,19 +28,24 @@ La cadena de prueba. + ¬e.ctype.parameter.integer; + ¬e.ctype.parameter.non-string; + &reftitle.returnvalues; Devuelve &true; si cada caracter de texto es o bien uno letra o un dígito, &false; de lo contrario. + &ctype.result.empty-string; + &reftitle.examples; @@ -72,11 +76,6 @@ La cadena foo!#$bar no consiste completamente de letras o dígitos. - - - &reftitle.notes; - ¬e.ctype.parameter.integer; - &reftitle.seealso; @@ -85,6 +84,7 @@ La cadena foo!#$bar no consiste completamente de letras o dígitos. ctype_alpha ctype_digit setlocale + IntlChar::isalnum diff --git a/reference/ctype/functions/ctype-alpha.xml b/reference/ctype/functions/ctype-alpha.xml index e0f2195b7..ded79d6b5 100644 --- a/reference/ctype/functions/ctype-alpha.xml +++ b/reference/ctype/functions/ctype-alpha.xml @@ -1,6 +1,5 @@ - - + @@ -12,7 +11,7 @@ &reftitle.description; boolctype_alpha - stringtext + mixedtext Verifica si todos los caracteres en la string @@ -25,7 +24,7 @@ minúsculas. - + &reftitle.parameters; @@ -35,21 +34,24 @@ El string de prueba. + ¬e.ctype.parameter.integer; + ¬e.ctype.parameter.non-string; - + &reftitle.returnvalues; Devuelve &true; si cada caracter de texto es una letra de la localización actual, &false; de lo contrario. + &ctype.result.empty-string; - + &reftitle.examples; @@ -80,12 +82,7 @@ La cadena arf12 no consiste completamente de letras. - - - &reftitle.notes; - ¬e.ctype.parameter.integer; - - + &reftitle.seealso; @@ -93,6 +90,7 @@ La cadena arf12 no consiste completamente de letras. ctype_upper ctype_lower setlocale + IntlChar::isalpha diff --git a/reference/ctype/functions/ctype-cntrl.xml b/reference/ctype/functions/ctype-cntrl.xml index 3c11cdd79..76074cf00 100644 --- a/reference/ctype/functions/ctype-cntrl.xml +++ b/reference/ctype/functions/ctype-cntrl.xml @@ -1,6 +1,5 @@ - - + @@ -12,7 +11,7 @@ &reftitle.description; boolctype_cntrl - stringtext + mixedtext Verifica si todos los caracteres en la string entregada, @@ -21,7 +20,7 @@ escape. - + &reftitle.parameters; @@ -31,21 +30,24 @@ El string de prueba. + ¬e.ctype.parameter.integer; + ¬e.ctype.parameter.non-string; - + &reftitle.returnvalues; Devuelve &true; si cada caracter de texto es un caracter de control de la localización actual, &false; de lo contrario. + &ctype.result.empty-string; - + &reftitle.examples; @@ -75,17 +77,13 @@ La cadena 'cadena2' no consiste completamente de caracteres de control. - - - &reftitle.notes; - ¬e.ctype.parameter.integer; - - + &reftitle.seealso; ctype_print + IntlChar::iscntrl diff --git a/reference/ctype/functions/ctype-digit.xml b/reference/ctype/functions/ctype-digit.xml index 35114b5c9..63de5bdc3 100644 --- a/reference/ctype/functions/ctype-digit.xml +++ b/reference/ctype/functions/ctype-digit.xml @@ -1,6 +1,5 @@ - - + @@ -12,7 +11,7 @@ &reftitle.description; boolctype_digit - stringtext + mixedtext Verifica si todos los caracteres en la string entregada, @@ -29,6 +28,8 @@ La cadena probada. + ¬e.ctype.parameter.integer; + ¬e.ctype.parameter.non-string; @@ -41,34 +42,10 @@ Devuelve &true; si cada caracter del texto es un dígito decimal, o &false; de lo contrario. + &ctype.result.empty-string; - - &reftitle.changelog; - - - - - - &Version; - &Description; - - - - - 5.1.0 - - En versiones anteriores a PHP 5.1.0, esta función devolvía &true; - cuando text era una cadena vacía. - - - - - - - - &reftitle.examples; @@ -117,21 +94,8 @@ is_numeric($integer); // true ]]> - + - - - &reftitle.notes; - - - Esta función espera un string para ser útil, por ejemplo si pasamos - un integer no puede devolver el resultado esperado. Sin embargo, nótese también - los formularios HTML resultarán en strings numéricos y no en integers. Ver también - la sección del manual tipos. - - - ¬e.ctype.parameter.integer; - &reftitle.seealso; @@ -141,7 +105,8 @@ is_numeric($integer); // true ctype_xdigit is_numeric is_int - is_string + is_string + IntlChar::isdigit diff --git a/reference/ctype/functions/ctype-graph.xml b/reference/ctype/functions/ctype-graph.xml index 4b43d7e4a..6bf601a44 100644 --- a/reference/ctype/functions/ctype-graph.xml +++ b/reference/ctype/functions/ctype-graph.xml @@ -1,6 +1,5 @@ - - + @@ -13,7 +12,7 @@ &reftitle.description; boolctype_graph - stringtext + mixedtext Verifica si todos los caracteres en la string entregada, @@ -30,6 +29,8 @@ La cadena de prueba. + ¬e.ctype.parameter.integer; + ¬e.ctype.parameter.non-string; @@ -43,6 +44,7 @@ Devuelve &true; si cada caracter del texto es imprimible y genera alguna salida visible (no incluye los espacios), o &false; de lo contrario. + &ctype.result.empty-string; @@ -76,11 +78,6 @@ La cadena 'cadena3' consiste completamente de caracteres (visiblemente) imprimib - - - &reftitle.notes; - ¬e.ctype.parameter.integer; - &reftitle.seealso; @@ -89,6 +86,7 @@ La cadena 'cadena3' consiste completamente de caracteres (visiblemente) imprimib ctype_alnum ctype_print ctype_punct + IntlChar::isgraph diff --git a/reference/ctype/functions/ctype-lower.xml b/reference/ctype/functions/ctype-lower.xml index 9a94a0a0d..4ca89b18a 100644 --- a/reference/ctype/functions/ctype-lower.xml +++ b/reference/ctype/functions/ctype-lower.xml @@ -1,6 +1,5 @@ - - + @@ -12,7 +11,7 @@ &reftitle.description; boolctype_lower - stringtext + mixedtext Verifica si todos los caracteres en la string entregada, @@ -29,6 +28,8 @@ La cadena de prueba. + ¬e.ctype.parameter.integer; + ¬e.ctype.parameter.non-string; @@ -41,6 +42,7 @@ Devuelve &true; si cada caracter del texto es una letra minúscula en la localidad actual. + &ctype.result.empty-string; @@ -75,11 +77,6 @@ La cadena QASsdks no consiste completamente de letras minúsculas. - - - &reftitle.notes; - ¬e.ctype.parameter.integer; - &reftitle.seealso; @@ -88,6 +85,7 @@ La cadena QASsdks no consiste completamente de letras minúsculas. ctype_alpha ctype_upper setlocale + IntlChar::islower diff --git a/reference/ctype/functions/ctype-print.xml b/reference/ctype/functions/ctype-print.xml index 4d2625d78..f1be4b139 100644 --- a/reference/ctype/functions/ctype-print.xml +++ b/reference/ctype/functions/ctype-print.xml @@ -1,6 +1,5 @@ - - + @@ -13,7 +12,7 @@ &reftitle.description; boolctype_print - stringtext + mixedtext verifica si todos los caracteres en la string entregada, @@ -30,6 +29,8 @@ La cadena de prueba. + ¬e.ctype.parameter.integer; + ¬e.ctype.parameter.non-string; @@ -45,6 +46,7 @@ &false; si el texto incluye caracteres de control o caracteres que no producen ninguna salida ni realizan función de control alguna después de todo. + &ctype.result.empty-string; @@ -78,11 +80,6 @@ La cadena 'cadena3' consiste completamente de caracteres imprimibles. - - - &reftitle.notes; - ¬e.ctype.parameter.integer; - &reftitle.seealso; @@ -91,6 +88,7 @@ La cadena 'cadena3' consiste completamente de caracteres imprimibles. ctype_cntrl ctype_graph ctype_punct + IntlChar::isprint diff --git a/reference/ctype/functions/ctype-punct.xml b/reference/ctype/functions/ctype-punct.xml index d40b85ced..3f518d15f 100644 --- a/reference/ctype/functions/ctype-punct.xml +++ b/reference/ctype/functions/ctype-punct.xml @@ -1,6 +1,5 @@ - - + @@ -16,7 +15,7 @@ &reftitle.description; boolctype_punct - stringtext + mixedtext Verifica si todos los caracteres en la string entregada, @@ -33,6 +32,8 @@ La cadena de prueba. + ¬e.ctype.parameter.integer; + ¬e.ctype.parameter.non-string; @@ -46,6 +47,7 @@ Devuelve &true; si cada caracter del text es imprimible, pero no es una letra, dígito o espacio en blanco; o &false; de lo contrario. + &ctype.result.empty-string; @@ -79,11 +81,6 @@ La cadena *&$() consiste completamente de signos de puntuación. - - - &reftitle.notes; - ¬e.ctype.parameter.integer; - &reftitle.seealso; @@ -91,6 +88,7 @@ La cadena *&$() consiste completamente de signos de puntuación. ctype_cntrl ctype_graph + IntlChar::ispunct diff --git a/reference/ctype/functions/ctype-space.xml b/reference/ctype/functions/ctype-space.xml index 8664789b8..151229d49 100644 --- a/reference/ctype/functions/ctype-space.xml +++ b/reference/ctype/functions/ctype-space.xml @@ -1,6 +1,5 @@ - - + @@ -13,7 +12,7 @@ &reftitle.description; boolctype_space - stringtext + mixedtext Verifica si todos los caracteres en la string entregada, @@ -30,6 +29,8 @@ El string de prueba. + ¬e.ctype.parameter.integer; + ¬e.ctype.parameter.non-string; @@ -47,6 +48,7 @@ tabulación, tabulación vertical, avance de línea, retorno de carro y avance de formulario. + &ctype.result.empty-string; @@ -84,11 +86,6 @@ The string 'string3' contains non-whitespace characters. - - - &reftitle.notes; - ¬e.ctype.parameter.integer; - &reftitle.seealso; @@ -97,6 +94,7 @@ The string 'string3' contains non-whitespace characters. ctype_cntrl ctype_graph ctype_punct + IntlChar::isspace diff --git a/reference/ctype/functions/ctype-upper.xml b/reference/ctype/functions/ctype-upper.xml index 8fa5b04f5..7edc2b286 100644 --- a/reference/ctype/functions/ctype-upper.xml +++ b/reference/ctype/functions/ctype-upper.xml @@ -1,6 +1,5 @@ - - + @@ -13,7 +12,7 @@ &reftitle.description; boolctype_upper - stringtext + mixedtext Verifica si todos los caracteres en la string entregada, @@ -30,6 +29,8 @@ La cadena de prueba. + ¬e.ctype.parameter.integer; + ¬e.ctype.parameter.non-string; @@ -42,6 +43,7 @@ Devuelve &true; si cada caracter del text es una letra mayúscula en la localidad actual. + &ctype.result.empty-string; @@ -76,11 +78,6 @@ La cadena akwSKWsm no consiste completamente de signos de letras mayúsculas. - - - &reftitle.notes; - ¬e.ctype.parameter.integer; - &reftitle.seealso; @@ -89,6 +86,7 @@ La cadena akwSKWsm no consiste completamente de signos de letras mayúsculas. ctype_alpha ctype_lower setlocale + IntlChar::isupper diff --git a/reference/ctype/functions/ctype-xdigit.xml b/reference/ctype/functions/ctype-xdigit.xml index c616da810..addf4d9be 100644 --- a/reference/ctype/functions/ctype-xdigit.xml +++ b/reference/ctype/functions/ctype-xdigit.xml @@ -1,6 +1,5 @@ - - + @@ -15,7 +14,7 @@ &reftitle.description; boolctype_xdigit - stringtext + mixedtext Verifica si todos los caracteres de la string entregada, @@ -32,6 +31,8 @@ La cadena de prueba. + ¬e.ctype.parameter.integer; + ¬e.ctype.parameter.non-string; @@ -46,6 +47,7 @@ es un 'dígito' hexadecimal, lo que quiere decir un dígito decimal o un caracter del rango [A-Fa-f]; &false; de lo contrario. + &ctype.result.empty-string; @@ -79,17 +81,13 @@ La cadena ab12bc99 consiste completamente de dígitos hexadecimales. - - - &reftitle.notes; - ¬e.ctype.parameter.integer; - &reftitle.seealso; ctype_digit + IntlChar::isxdigit