123456789_123456789_123456789_123456789_123456789_

Module: Net::IMAP::StringPrep::Trace

Relationships & Source Files
Defined in: lib/net/imap/stringprep/trace.rb

Overview

Defined in RFC-4505 §3, The trace profile of StringPrep is used by the ANONYMOUS SASL mechanism.

Constant Summary

Class Method Summary

Class Method Details

.stringprep_trace(string, **opts) (mod_func)

From RFC-4505 §3, The “trace” Profile of “Stringprep”:

The character repertoire of this profile is Unicode 3.2 [Unicode].

No mapping is required by this profile.

No Unicode normalization is required by this profile.

The list of unassigned code points for this profile is that provided in Appendix A of [StringPrep]. Unassigned code points are not prohibited.

Characters from the following tables of [StringPrep] are prohibited: (documented on PROHIBITED_TABLES)

This profile requires bidirectional character checking per Section 6 of [StringPrep].

[ GitHub ]

  
# File 'lib/net/imap/stringprep/trace.rb', line 68

def stringprep_trace(string, **opts)
  StringPrep.stringprep(
    string,
    unassigned:    UNASSIGNED_TABLE,
    maps:          MAPPING_TABLES,
    prohibited:    PROHIBITED_TABLES,
    normalization: NORMALIZATION,
    bidi:          CHECK_BIDI,
    profile:       STRINGPREP_PROFILE,
    **opts,
  )
end