Files
archived-doc-pt-br/reference/intl/spoofchecker.xml
Leonardo Lara Rodrigues d95798d3aa sync with en rev
2026-02-06 12:15:21 -03:00

420 lines
13 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 5e36b489fc67bd0b5c424c7d1cd131c2e982bc5c Maintainer: leonardolara Status: ready -->
<reference xml:id="class.spoofchecker" role="class" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
<title>A classe Spoofchecker</title>
<titleabbrev>Spoofchecker</titleabbrev>
<partintro>
<!-- {{{ Spoofchecker intro -->
<section xml:id="spoofchecker.intro">
&reftitle.intro;
<para>
Esta classe é fornecida porque o Unicode contém um grande número de caractares
e incorpora sistemas variados de escrita de todo o mundo e seu uso
incorreto pode expor programas ou sistemas a possíveis ataques à segurança usando
similaridade de caracteres.
</para>
<para>
Os métodos fornecidos permitem verificar se uma string individual pode ser uma tentativa
de confundir o leitor (<literal>spoof detection</literal>), como em "pаypаl"
escrito com caracteres cirílicos 'а'.
</para>
</section>
<!-- }}} -->
<section xml:id="spoofchecker.synopsis">
&reftitle.classsynopsis;
<!-- {{{ Synopsis -->
<classsynopsis class="class">
<ooclass>
<classname>Spoofchecker</classname>
</ooclass>
<classsynopsisinfo role="comment">&Constants;</classsynopsisinfo>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>const</modifier>
<type>int</type>
<varname linkend="spoofchecker.constants.single-script-confusable">Spoofchecker::SINGLE_SCRIPT_CONFUSABLE</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>const</modifier>
<type>int</type>
<varname linkend="spoofchecker.constants.mixed-script-confusable">Spoofchecker::MIXED_SCRIPT_CONFUSABLE</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>const</modifier>
<type>int</type>
<varname linkend="spoofchecker.constants.whole-script-confusable">Spoofchecker::WHOLE_SCRIPT_CONFUSABLE</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>const</modifier>
<type>int</type>
<varname linkend="spoofchecker.constants.any-case">Spoofchecker::ANY_CASE</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>const</modifier>
<type>int</type>
<varname linkend="spoofchecker.constants.single-script">Spoofchecker::SINGLE_SCRIPT</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>const</modifier>
<type>int</type>
<varname linkend="spoofchecker.constants.invisible">Spoofchecker::INVISIBLE</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>const</modifier>
<type>int</type>
<varname linkend="spoofchecker.constants.char-limit">Spoofchecker::CHAR_LIMIT</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>const</modifier>
<type>int</type>
<varname linkend="spoofchecker.constants.ascii">Spoofchecker::ASCII</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>const</modifier>
<type>int</type>
<varname linkend="spoofchecker.constants.highly-restrictive">Spoofchecker::HIGHLY_RESTRICTIVE</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>const</modifier>
<type>int</type>
<varname linkend="spoofchecker.constants.moderately-restrictive">Spoofchecker::MODERATELY_RESTRICTIVE</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>const</modifier>
<type>int</type>
<varname linkend="spoofchecker.constants.minimally-restrictive">Spoofchecker::MINIMALLY_RESTRICTIVE</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>const</modifier>
<type>int</type>
<varname linkend="spoofchecker.constants.unrestrictive">Spoofchecker::UNRESTRICTIVE</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>const</modifier>
<type>int</type>
<varname linkend="spoofchecker.constants.single-script-restrictive">Spoofchecker::SINGLE_SCRIPT_RESTRICTIVE</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>const</modifier>
<type>int</type>
<varname linkend="spoofchecker.constants.mixed-numbers">Spoofchecker::MIXED_NUMBERS</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>const</modifier>
<type>int</type>
<varname linkend="spoofchecker.constants.hidden-overlay">Spoofchecker::HIDDEN_OVERLAY</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>const</modifier>
<type>int</type>
<varname linkend="spoofchecker.constants.ignore-space">Spoofchecker::IGNORE_SPACE</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>const</modifier>
<type>int</type>
<varname linkend="spoofchecker.constants.case-insensitive">Spoofchecker::CASE_INSENSITIVE</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>const</modifier>
<type>int</type>
<varname linkend="spoofchecker.constants.add-case-mappings">Spoofchecker::ADD_CASE_MAPPINGS</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>const</modifier>
<type>int</type>
<varname linkend="spoofchecker.constants.simple-case-insensitive">Spoofchecker::SIMPLE_CASE_INSENSITIVE</varname>
</fieldsynopsis>
<classsynopsisinfo role="comment">&Methods;</classsynopsisinfo>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.spoofchecker')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[@role='Spoofchecker'])">
<xi:fallback/>
</xi:include>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.spoofchecker')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[@role='Spoofchecker'])">
<xi:fallback/>
</xi:include>
</classsynopsis>
<!-- }}} -->
</section>
<section xml:id="spoofchecker.constants">
&reftitle.constants;
<variablelist>
<varlistentry xml:id="spoofchecker.constants.single-script-confusable">
<term>
<constant>Spoofchecker::SINGLE_SCRIPT_CONFUSABLE</constant>
<type>int</type>
</term>
<listitem>
<para/>
</listitem>
</varlistentry>
<varlistentry xml:id="spoofchecker.constants.mixed-script-confusable">
<term>
<constant>Spoofchecker::MIXED_SCRIPT_CONFUSABLE</constant>
<type>int</type>
</term>
<listitem>
<para/>
</listitem>
</varlistentry>
<varlistentry xml:id="spoofchecker.constants.whole-script-confusable">
<term>
<constant>Spoofchecker::WHOLE_SCRIPT_CONFUSABLE</constant>
<type>int</type>
</term>
<listitem>
<para/>
</listitem>
</varlistentry>
<varlistentry xml:id="spoofchecker.constants.any-case">
<term>
<constant>Spoofchecker::ANY_CASE</constant>
<type>int</type>
</term>
<listitem>
<para/>
</listitem>
</varlistentry>
<varlistentry xml:id="spoofchecker.constants.single-script">
<term>
<constant>Spoofchecker::SINGLE_SCRIPT</constant>
<type>int</type>
</term>
<listitem>
<para/>
</listitem>
</varlistentry>
<varlistentry xml:id="spoofchecker.constants.invisible">
<term>
<constant>Spoofchecker::INVISIBLE</constant>
<type>int</type>
</term>
<listitem>
<para/>
</listitem>
</varlistentry>
<varlistentry xml:id="spoofchecker.constants.char-limit">
<term>
<constant>Spoofchecker::CHAR_LIMIT</constant>
<type>int</type>
</term>
<listitem>
<para/>
</listitem>
</varlistentry>
<varlistentry xml:id="spoofchecker.constants.ascii">
<term>
<constant>Spoofchecker::ASCII</constant>
<type>int</type>
</term>
<listitem>
<para/>
</listitem>
</varlistentry>
<varlistentry xml:id="spoofchecker.constants.highly-restrictive">
<term>
<constant>Spoofchecker::HIGHLY_RESTRICTIVE</constant>
<type>int</type>
</term>
<listitem>
<para/>
</listitem>
</varlistentry>
<varlistentry xml:id="spoofchecker.constants.moderately-restrictive">
<term>
<constant>Spoofchecker::MODERATELY_RESTRICTIVE</constant>
<type>int</type>
</term>
<listitem>
<para/>
</listitem>
</varlistentry>
<varlistentry xml:id="spoofchecker.constants.minimally-restrictive">
<term>
<constant>Spoofchecker::MINIMALLY_RESTRICTIVE</constant>
<type>int</type>
</term>
<listitem>
<para/>
</listitem>
</varlistentry>
<varlistentry xml:id="spoofchecker.constants.unrestrictive">
<term>
<constant>Spoofchecker::UNRESTRICTIVE</constant>
<type>int</type>
</term>
<listitem>
<para/>
</listitem>
</varlistentry>
<varlistentry xml:id="spoofchecker.constants.single-script-restrictive">
<term>
<constant>Spoofchecker::SINGLE_SCRIPT_RESTRICTIVE</constant>
<type>int</type>
</term>
<listitem>
<para/>
</listitem>
</varlistentry>
<varlistentry xml:id="spoofchecker.constants.mixed-numbers">
<term>
<constant>Spoofchecker::MIXED_NUMBERS</constant>
<type>int</type>
</term>
<listitem>
<para/>
</listitem>
</varlistentry>
<varlistentry xml:id="spoofchecker.constants.hidden-overlay">
<term>
<constant>Spoofchecker::HIDDEN_OVERLAY</constant>
<type>int</type>
</term>
<listitem>
<para/>
</listitem>
</varlistentry>
<varlistentry xml:id="spoofchecker.constants.ignore-space">
<term>
<constant>Spoofchecker::IGNORE_SPACE</constant>
<type>int</type>
</term>
<listitem>
<para/>
</listitem>
</varlistentry>
<varlistentry xml:id="spoofchecker.constants.case-insensitive">
<term>
<constant>Spoofchecker::CASE_INSENSITIVE</constant>
<type>int</type>
</term>
<listitem>
<simpara>Habilita correspondência insensível a maiúsculas/minúsculas</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="spoofchecker.constants.add-case-mappings">
<term>
<constant>Spoofchecker::ADD_CASE_MAPPINGS</constant>
<type>int</type>
</term>
<listitem>
<para>Adiciona todos os mapeamentos de maiúsculas/minúsculas para cada elemento no conjunto</para>
</listitem>
</varlistentry>
<varlistentry xml:id="spoofchecker.constants.simple-case-insensitive">
<term>
<constant>Spoofchecker::SIMPLE_CASE_INSENSITIVE</constant>
<type>int</type>
</term>
<listitem>
<simpara>Habilita correspondência insensível a maiúsculas/minúsculas</simpara>
</listitem>
</varlistentry>
</variablelist>
</section>
<section role="changelog">
&reftitle.changelog;
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>8.4.0</entry>
<entry>
Adicionadas as constantes <constant>Spoofchecker::IGNORE_SPACE</constant>, <constant>Spoofchecker::CASE_INSENSITIVE</constant>,
<constant>Spoofchecker::ADD_CASE_MAPPINGS</constant> e <constant>Spoofchecker::SIMPLE_CASE_INSENSITIVE</constant>.
</entry>
</row>
<row>
<entry>8.4.0</entry>
<entry>
As constantes de classe agora são tipadas.
</entry>
</row>
<row>
<entry>7.3.0</entry>
<entry>
Constantes de classe usadas por <function>Spoofchecker::setRestrictionLevel</function> como <constant>Spoofchecker::ASCII</constant>, <constant>Spoofchecker::HIGHLY_RESTRICTIVE</constant>, <constant>Spoofchecker::MODERATELY_RESTRICTIVE</constant>, <constant>Spoofchecker::MINIMALLY_RESTRICTIVE</constant>, <constant>Spoofchecker::UNRESTRICTIVE</constant>, <constant>Spoofchecker::SINGLE_SCRIPT_RESTRICTIVE</constant> foram adicionadas.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</section>
</partintro>
&reference.intl.entities.spoofchecker;
</reference>
<!-- 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
-->