[#BloombergLP-bdlb-Tokenizer_Data-2constructor-07]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/Tokenizer_Data.adoc[Tokenizer&lowbar;Data]::Tokenizer&lowbar;Data
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;bdlb&lowbar;tokenizer&period;h&gt;`

Create a `Tokenizer&lowbar;Data` object and load the `d&lowbar;charTypes` data member such that it has the same value _as_ _if_ this (overly prescriptive) algorithm were used&colon; (I) initialize each entry in `d&lowbar;charTypes` array to a value indicating that the character having that `index` as its (e&period;g&period;, ASCII) representation is a _token_ character&semi; (II) then, for each character in the specified `softDelimiters` sequence, overwrite the element at the corresponding index in `d&lowbar;charTypes` with a value that indicates that the character is a _soft_ delimiter character&semi; (III) finally, for each character in the specified `hardDelimiters` sequence, overwrite the element at the corresponding index with a distinct value that indicates the character is a _hard_ delimiter&ast; character&period; Note that duplicate delimiter characters in the respective inputs are naturally ignored, and that a character that appears in both sets would naturally be considered _hard_&period; Also note that it is entirely reasonable to state, in any public interface, that the behavior is undefined unless the characters in the union of the two delimiter sequences are unique&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/bdlb/Tokenizer_Data/2constructor-04.adoc[Tokenizer&lowbar;Data](std::string&lowbar;view const& softDelimiters);
----

[.small]#xref:BloombergLP/bdlb/Tokenizer_Data/2constructor-04.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload, also marking characters in the specified `hardDelimiters` as hard delimiter characters&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlb/Tokenizer_Data/2constructor-00.adoc[Tokenizer&lowbar;Data](
    std::string&lowbar;view const& softDelimiters,
    std::string&lowbar;view const& hardDelimiters);
----

[.small]#xref:BloombergLP/bdlb/Tokenizer_Data/2constructor-00.adoc[_» more&period;&period;&period;_]#


[.small]#Created with https://www.mrdocs.com[MrDocs]#
