2 instantiations of WordsSegmenter
PresentationFramework (2)
MS\Internal\WindowsRuntime\Generated\Windows.Data.Text.cs (1)
365
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)
52
return new
WordsSegmenter
(language);
42 references to WordsSegmenter
PresentationFramework (42)
MS\Internal\WindowsRuntime\Generated\Windows.Data.Text.cs (28)
142
WordsSegmenter
CreateWithLanguage(string language);
313
internal sealed partial class WordsSegmenter : global::System.Runtime.InteropServices.ICustomQueryInterface, IEquatable<
WordsSegmenter
>
324
public _IWordsSegmenterFactory() : base(ActivationFactory<
WordsSegmenter
>.As<ABI.Windows.Data.Text.IWordsSegmenterFactory.Vftbl>()) { }
361
public static
WordsSegmenter
FromAbi(IntPtr thisPtr)
365
return obj is
WordsSegmenter
? (
WordsSegmenter
)obj : new WordsSegmenter((global::MS.Internal.WindowsRuntime.ABI.Windows.Data.Text.IWordsSegmenter)obj);
373
public static bool operator ==(
WordsSegmenter
x,
WordsSegmenter
y) => (x?.ThisPtr ?? IntPtr.Zero) == (y?.ThisPtr ?? IntPtr.Zero);
374
public static bool operator !=(
WordsSegmenter
x,
WordsSegmenter
y) => !(x == y);
375
public bool Equals(
WordsSegmenter
other) => this == other;
376
public override bool Equals(object obj) => obj is
WordsSegmenter
that && this == that;
1490
global::MS.Internal.WindowsRuntime.Windows.Data.Text.
WordsSegmenter
__result = default;
1522
public unsafe global::MS.Internal.WindowsRuntime.Windows.Data.Text.
WordsSegmenter
CreateWithLanguage(string language)
1656
public static IObjectReference CreateMarshaler(global::MS.Internal.WindowsRuntime.Windows.Data.Text.
WordsSegmenter
obj) => obj is null ? null : MarshalInspectable.CreateMarshaler(obj).As<IWordsSegmenter.Vftbl>();
1658
public static global::MS.Internal.WindowsRuntime.Windows.Data.Text.
WordsSegmenter
FromAbi(IntPtr thisPtr) => global::MS.Internal.WindowsRuntime.Windows.Data.Text.
WordsSegmenter
.FromAbi(thisPtr);
1659
public static IntPtr FromManaged(global::MS.Internal.WindowsRuntime.Windows.Data.Text.
WordsSegmenter
obj) => obj is null ? IntPtr.Zero : CreateMarshaler(obj).GetRef();
1660
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));
1661
public static (int length, IntPtr data) GetAbiArray(object box) => MarshalInterfaceHelper<global::MS.Internal.WindowsRuntime.Windows.Data.Text.
WordsSegmenter
>.GetAbiArray(box);
1662
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);
1663
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));
1665
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)
38
public static
WordsSegmenter
Create(string language, bool shouldPreferNeutralSegmenter = false)
System\Windows\Documents\WinRTSpellerInterop.cs (11)
52
_spellCheckers = new Dictionary<CultureInfo, Tuple<
WordsSegmenter
, SpellChecker>>();
277
WordsSegmenter
wordBreaker = null;
285
wordBreaker =
WordsSegmenter
.Create(culture.Name, shouldPreferNeutralSegmenter:true);
333
_spellCheckers[culture] = new Tuple<
WordsSegmenter
, SpellChecker>(wordBreaker, spellChecker);
369
var
wordBreaker = CurrentWordBreaker ?? DefaultCultureWordBreaker;
681
foreach (Tuple<
WordsSegmenter
, SpellChecker> item in _spellCheckers.Values)
770
private
WordsSegmenter
CurrentWordBreaker
786
private
WordsSegmenter
DefaultCultureWordBreaker
825
private Dictionary<CultureInfo, Tuple<
WordsSegmenter
, SpellChecker>> _spellCheckers;
1044
public SpellerSentence(string sentence,
WordsSegmenter
wordBreaker, SpellChecker spellChecker, WinRTSpellerInterop owner)
1087
private
WordsSegmenter
_wordBreaker;
System\Windows\Documents\WinRTSpellerInteropExtensions.cs (2)
55
this
WordsSegmenter
segmenter,
149
/// See note about MAXLEN in <see cref="ComprehensiveGetTokens(
WordsSegmenter
, string, SpellChecker, WinRTSpellerInterop)"/>