2 instantiations of WordsSegmenter
PresentationFramework (2)
MS\Internal\WindowsRuntime\Generated\Windows.Data.Text.cs (1)
372
return obj is WordsSegmenter ? (WordsSegmenter)obj : new
WordsSegmenter
((global::MS.Internal.WindowsRuntime.ABI.Windows.Data.Text.IWordsSegmenter)obj);
MS\Internal\WindowsRuntime\Windows\Data\Text\WordsSegmenter.cs (1)
58
return new
WordsSegmenter
(language);
42 references to WordsSegmenter
PresentationFramework (42)
MS\Internal\WindowsRuntime\Generated\Windows.Data.Text.cs (28)
149
WordsSegmenter
CreateWithLanguage(string language);
320
internal sealed partial class WordsSegmenter : global::System.Runtime.InteropServices.ICustomQueryInterface, IEquatable<
WordsSegmenter
>
331
public _IWordsSegmenterFactory() : base(ActivationFactory<
WordsSegmenter
>.As<ABI.Windows.Data.Text.IWordsSegmenterFactory.Vftbl>()) { }
368
public static
WordsSegmenter
FromAbi(IntPtr thisPtr)
372
return obj is
WordsSegmenter
? (
WordsSegmenter
)obj : new WordsSegmenter((global::MS.Internal.WindowsRuntime.ABI.Windows.Data.Text.IWordsSegmenter)obj);
380
public static bool operator ==(
WordsSegmenter
x,
WordsSegmenter
y) => (x?.ThisPtr ?? IntPtr.Zero) == (y?.ThisPtr ?? IntPtr.Zero);
381
public static bool operator !=(
WordsSegmenter
x,
WordsSegmenter
y) => !(x == y);
382
public bool Equals(
WordsSegmenter
other) => this == other;
383
public override bool Equals(object obj) => obj is
WordsSegmenter
that && this == that;
1497
global::MS.Internal.WindowsRuntime.Windows.Data.Text.
WordsSegmenter
__result = default;
1529
public unsafe global::MS.Internal.WindowsRuntime.Windows.Data.Text.
WordsSegmenter
CreateWithLanguage(string language)
1663
public static IObjectReference CreateMarshaler(global::MS.Internal.WindowsRuntime.Windows.Data.Text.
WordsSegmenter
obj) => obj is null ? null : MarshalInspectable.CreateMarshaler(obj).As<IWordsSegmenter.Vftbl>();
1665
public static global::MS.Internal.WindowsRuntime.Windows.Data.Text.
WordsSegmenter
FromAbi(IntPtr thisPtr) => global::MS.Internal.WindowsRuntime.Windows.Data.Text.
WordsSegmenter
.FromAbi(thisPtr);
1666
public static IntPtr FromManaged(global::MS.Internal.WindowsRuntime.Windows.Data.Text.
WordsSegmenter
obj) => obj is null ? IntPtr.Zero : CreateMarshaler(obj).GetRef();
1667
public static unsafe MarshalInterfaceHelper<global::MS.Internal.WindowsRuntime.Windows.Data.Text.
WordsSegmenter
>.MarshalerArray CreateMarshalerArray(global::MS.Internal.WindowsRuntime.Windows.Data.Text.
WordsSegmenter
[] array) => MarshalInterfaceHelper<global::MS.Internal.WindowsRuntime.Windows.Data.Text.
WordsSegmenter
>.CreateMarshalerArray(array, (o) => CreateMarshaler(o));
1668
public static (int length, IntPtr data) GetAbiArray(object box) => MarshalInterfaceHelper<global::MS.Internal.WindowsRuntime.Windows.Data.Text.
WordsSegmenter
>.GetAbiArray(box);
1669
public static unsafe global::MS.Internal.WindowsRuntime.Windows.Data.Text.
WordsSegmenter
[] FromAbiArray(object box) => MarshalInterfaceHelper<global::MS.Internal.WindowsRuntime.Windows.Data.Text.
WordsSegmenter
>.FromAbiArray(box, FromAbi);
1670
public static (int length, IntPtr data) FromManagedArray(global::MS.Internal.WindowsRuntime.Windows.Data.Text.
WordsSegmenter
[] array) => MarshalInterfaceHelper<global::MS.Internal.WindowsRuntime.Windows.Data.Text.
WordsSegmenter
>.FromManagedArray(array, (o) => FromManaged(o));
1672
public static void DisposeMarshalerArray(MarshalInterfaceHelper<global::MS.Internal.WindowsRuntime.Windows.Data.Text.
WordsSegmenter
>.MarshalerArray array) => MarshalInterfaceHelper<global::MS.Internal.WindowsRuntime.Windows.Data.Text.
WordsSegmenter
>.DisposeMarshalerArray(array);
MS\Internal\WindowsRuntime\Windows\Data\Text\WordsSegmenter.cs (1)
44
public static
WordsSegmenter
Create(string language, bool shouldPreferNeutralSegmenter = false)
System\Windows\Documents\WinRTSpellerInterop.cs (11)
60
_spellCheckers = new Dictionary<CultureInfo, Tuple<
WordsSegmenter
, SpellChecker>>();
285
WordsSegmenter
wordBreaker = null;
293
wordBreaker =
WordsSegmenter
.Create(culture.Name, shouldPreferNeutralSegmenter:true);
341
_spellCheckers[culture] = new Tuple<
WordsSegmenter
, SpellChecker>(wordBreaker, spellChecker);
377
var
wordBreaker = CurrentWordBreaker ?? DefaultCultureWordBreaker;
689
foreach (Tuple<
WordsSegmenter
, SpellChecker> item in _spellCheckers.Values)
778
private
WordsSegmenter
CurrentWordBreaker
794
private
WordsSegmenter
DefaultCultureWordBreaker
833
private Dictionary<CultureInfo, Tuple<
WordsSegmenter
, SpellChecker>> _spellCheckers;
1052
public SpellerSentence(string sentence,
WordsSegmenter
wordBreaker, SpellChecker spellChecker, WinRTSpellerInterop owner)
1095
private
WordsSegmenter
_wordBreaker;
System\Windows\Documents\WinRTSpellerInteropExtensions.cs (2)
57
this
WordsSegmenter
segmenter,
151
/// See note about MAXLEN in <see cref="ComprehensiveGetTokens(
WordsSegmenter
, string, SpellChecker, WinRTSpellerInterop)"/>