perl-5.34.0
fc EXPR
fc

Returns the casefolded version of EXPR. This is the internal function implementing the \F escape in double-quoted strings.

EXPR ��勛�潟�粋昭��睡�����菴������障����� ��������壔����������˨�壔�í�若�����絖������˨�����������\F �����鴻�宴�若����� 絎�茖������������◒�∽�違�с�����

Casefolding is the process of mapping strings to a form where case differences are erased; comparing two strings in their casefolded form is effectively a way of asking if two strings are equal, regardless of case.

��潟�粋昭��帥�壠ぇ���絖�絨����絖���勰��������羔�������綵√��������絖������������������潟�違�������☎����с��; ��潟�粋昭��水就綣���т����ゃ�勖��絖�������罸�莠���������勉�壚����ゃ�勖��絖�������紊ф��絖�絨����絖��� ��≪��������膈������������í��������罸�莠���������合�������ʋ�号����с�����

Roughly, if you ever found yourself writing this

�����������������ɱ����ʃ昆��т札筝���勉����������吾����⓾�������������⓾��

    lc($this) eq lc($that)    # Wrong!
        # or
    uc($this) eq uc($that)    # Also wrong!
        # or
    $this =~ /^\Q$that\E\z/i  # Right!

Now you can write

篁���с�壚札筝���勉����������吾����障��

    fc($this) eq fc($that)

And get the correct results.

��������〠③������腟�������緇���������障�����

Perl only implements the full form of casefolding, but you can access the simple folds using "casefold()" in Unicode::UCD and "prop_invmap()" in Unicode::UCD. For further information on casefolding, refer to the Unicode Standard, specifically sections 3.13 Default Case Operations, 4.2 Case-Normative, and 5.18 Case Mappings, available at https://www.unicode.org/versions/latest/, as well as the Case Charts available at https://www.unicode.org/charts/case/.

Perl ��壠�������ɱ就綣���勛�潟�粋昭��帥�勉�帥��絎�茖������⓾����障�������� "casefold()" in Unicode::UCD ��� "prop_invmap()" in Unicode::UCD ���篏帥�c� ���膣���ŝ�������粋昭��帥�˨�≪�壔�祉�鴻�с����障����� ��潟�粋昭��帥�̹�≪�������������ŝ�������宴�˨�ゃ����⓾�壔�� https://www.unicode.org/versions/latest/ ��у�ñ���櫝�純�� Unicode 罔�羣������鴻� 3.13 Default Case Operations, 4.2 Case-Normative, 5.18 Case Mappings ��������潟��https://www.unicode.org/charts/case/ �� ��ñ���櫝�純�ŝ�宴�若�壕;��������с����⓾��������������

If EXPR is omitted, uses $_.

EXPR ��������ャ��������������$_ ���篏帥����障�����

This function behaves the same way under various pragmas, such as within "use feature 'unicode_strings", as lc does, with the single exception of fc of LATIN CAPITAL LETTER SHARP S (U+1E9E) within the scope of use locale. The foldcase of this character would normally be "ss", but as explained in the lc section, case changes that cross the 255/256 boundary are problematic under locales, and are hence prohibited. Therefore, this function under locale returns instead the string "\x{17F}\x{17F}", which is the LATIN SMALL LETTER LONG S. Since that character itself folds to "s", the string of two of them together should be equivalent to a single U+1E9E when foldcased.

�����勰�∽�違�壔�� "use feature 'unicode_strings" ��勉�������ŝ����障����障�ŝ����í�違����勐襲��推����с�壔��lc ������罕��� ��壔����������障��; 篏�������use locale ��勉�鴻�潟�若�������с� LATIN CAPITAL LETTER SHARP S (U+1E9E) ��� fc ��壚��紊���с����� �����勖��絖���勛�潟�粋昭��炊��絖���壩�勰����� "ss" ��с��������lc ��勛���� 茯㋛�������⓾�������������˨����㏍�宴�若�˨�勐�冴�с��255/256 紜���������障�����紊ф��絖�絨����絖���勐����眼� ��馹������������勉�с��胼�罩≪�������⓾����障����� 緇���c�⓾����㏍�宴�若�˨�勐�冴�с�壔����勰�∽�違�壚撮��������� LATIN SMALL LETTER LONG S ��с����� "\x{17F}\x{17F}" ���菴������障����� �����勖��絖���ŭ����� "s" ��勛�潟�粋昭��帥�ŝ�勉�с�����������篋���ゃ�����������������絖������ ��潟�粋昭��障�������翫����壠��筝���� U+1E9E ��◐��箴<�˨�ŝ����障�����

While the Unicode Standard defines two additional forms of casefolding, one for Turkic languages and one that never maps one character into multiple characters, these are not provided by the Perl core. However, the CPAN module Unicode::Casing may be used to provide an implementation.

Unicode 罔�羣���壔�������˩����ゃ�勛�潟�粋昭��水就綣����筝���ゃ�壔����˨�㊧�����������筝���ゃ�壩浦����� 筝���ゃ�勖��絖����茲���違�勖��絖���˨����������潟�違�������ŝ�������勉�����絎�臂í����⓾����障�������� ������������ Perl ��潟�≪�с�壩��箴���������障�������� ������������CPAN ��≪�吾�ャ�若�� Unicode::Casing ���絎�茖���� ���箴������⓾����障�����

fc is available only if the "fc" feature is enabled or if it is prefixed with CORE::. The "fc" feature is enabled automatically with a use v5.16 (or higher) declaration in the current scope.

fc ��� "fc" 罘���� ��������鴻�� CORE:: ������臀勉����������������˨�勉�水�ñ���櫝�純�с����� "fc" 罘���� ��夌憜����勉�鴻�潟�若���� use v5.16 (��障����壔�����篁ヤ��) ���絎h�������������◑�ɱ�������������鴻�˨�ŝ����障�����