| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/cppwinrt/winrt/impl/ |
Upload File : |
// C++/WinRT v2.0.190620.2
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#ifndef WINRT_Windows_Data_Text_2_H
#define WINRT_Windows_Data_Text_2_H
#include "winrt/impl/Windows.Foundation.Collections.1.h"
#include "winrt/impl/Windows.Data.Text.1.h"
namespace winrt::Windows::Data::Text
{
struct SelectableWordSegmentsTokenizingHandler : Windows::Foundation::IUnknown
{
SelectableWordSegmentsTokenizingHandler(std::nullptr_t = nullptr) noexcept {}
SelectableWordSegmentsTokenizingHandler(void* ptr, take_ownership_from_abi_t) noexcept : Windows::Foundation::IUnknown(ptr, take_ownership_from_abi) {}
template <typename L> SelectableWordSegmentsTokenizingHandler(L lambda);
template <typename F> SelectableWordSegmentsTokenizingHandler(F* function);
template <typename O, typename M> SelectableWordSegmentsTokenizingHandler(O* object, M method);
template <typename O, typename M> SelectableWordSegmentsTokenizingHandler(com_ptr<O>&& object, M method);
template <typename O, typename M> SelectableWordSegmentsTokenizingHandler(weak_ref<O>&& object, M method);
auto operator()(param::iterable<Windows::Data::Text::SelectableWordSegment> const& precedingWords, param::iterable<Windows::Data::Text::SelectableWordSegment> const& words) const;
};
struct WordSegmentsTokenizingHandler : Windows::Foundation::IUnknown
{
WordSegmentsTokenizingHandler(std::nullptr_t = nullptr) noexcept {}
WordSegmentsTokenizingHandler(void* ptr, take_ownership_from_abi_t) noexcept : Windows::Foundation::IUnknown(ptr, take_ownership_from_abi) {}
template <typename L> WordSegmentsTokenizingHandler(L lambda);
template <typename F> WordSegmentsTokenizingHandler(F* function);
template <typename O, typename M> WordSegmentsTokenizingHandler(O* object, M method);
template <typename O, typename M> WordSegmentsTokenizingHandler(com_ptr<O>&& object, M method);
template <typename O, typename M> WordSegmentsTokenizingHandler(weak_ref<O>&& object, M method);
auto operator()(param::iterable<Windows::Data::Text::WordSegment> const& precedingWords, param::iterable<Windows::Data::Text::WordSegment> const& words) const;
};
struct TextSegment
{
uint32_t StartPosition;
uint32_t Length;
};
inline bool operator==(TextSegment const& left, TextSegment const& right) noexcept
{
return left.StartPosition == right.StartPosition && left.Length == right.Length;
}
inline bool operator!=(TextSegment const& left, TextSegment const& right) noexcept
{
return !(left == right);
}
struct __declspec(empty_bases) AlternateWordForm : Windows::Data::Text::IAlternateWordForm
{
AlternateWordForm(std::nullptr_t) noexcept {}
AlternateWordForm(void* ptr, take_ownership_from_abi_t) noexcept : Windows::Data::Text::IAlternateWordForm(ptr, take_ownership_from_abi) {}
};
struct __declspec(empty_bases) SelectableWordSegment : Windows::Data::Text::ISelectableWordSegment
{
SelectableWordSegment(std::nullptr_t) noexcept {}
SelectableWordSegment(void* ptr, take_ownership_from_abi_t) noexcept : Windows::Data::Text::ISelectableWordSegment(ptr, take_ownership_from_abi) {}
};
struct __declspec(empty_bases) SelectableWordsSegmenter : Windows::Data::Text::ISelectableWordsSegmenter
{
SelectableWordsSegmenter(std::nullptr_t) noexcept {}
SelectableWordsSegmenter(void* ptr, take_ownership_from_abi_t) noexcept : Windows::Data::Text::ISelectableWordsSegmenter(ptr, take_ownership_from_abi) {}
SelectableWordsSegmenter(param::hstring const& language);
};
struct __declspec(empty_bases) SemanticTextQuery : Windows::Data::Text::ISemanticTextQuery
{
SemanticTextQuery(std::nullptr_t) noexcept {}
SemanticTextQuery(void* ptr, take_ownership_from_abi_t) noexcept : Windows::Data::Text::ISemanticTextQuery(ptr, take_ownership_from_abi) {}
SemanticTextQuery(param::hstring const& aqsFilter);
SemanticTextQuery(param::hstring const& aqsFilter, param::hstring const& filterLanguage);
};
struct __declspec(empty_bases) TextConversionGenerator : Windows::Data::Text::ITextConversionGenerator
{
TextConversionGenerator(std::nullptr_t) noexcept {}
TextConversionGenerator(void* ptr, take_ownership_from_abi_t) noexcept : Windows::Data::Text::ITextConversionGenerator(ptr, take_ownership_from_abi) {}
TextConversionGenerator(param::hstring const& languageTag);
};
struct __declspec(empty_bases) TextPhoneme : Windows::Data::Text::ITextPhoneme
{
TextPhoneme(std::nullptr_t) noexcept {}
TextPhoneme(void* ptr, take_ownership_from_abi_t) noexcept : Windows::Data::Text::ITextPhoneme(ptr, take_ownership_from_abi) {}
};
struct __declspec(empty_bases) TextPredictionGenerator : Windows::Data::Text::ITextPredictionGenerator,
impl::require<TextPredictionGenerator, Windows::Data::Text::ITextPredictionGenerator2>
{
TextPredictionGenerator(std::nullptr_t) noexcept {}
TextPredictionGenerator(void* ptr, take_ownership_from_abi_t) noexcept : Windows::Data::Text::ITextPredictionGenerator(ptr, take_ownership_from_abi) {}
TextPredictionGenerator(param::hstring const& languageTag);
using Windows::Data::Text::ITextPredictionGenerator::GetCandidatesAsync;
using impl::consume_t<TextPredictionGenerator, Windows::Data::Text::ITextPredictionGenerator2>::GetCandidatesAsync;
};
struct __declspec(empty_bases) TextReverseConversionGenerator : Windows::Data::Text::ITextReverseConversionGenerator,
impl::require<TextReverseConversionGenerator, Windows::Data::Text::ITextReverseConversionGenerator2>
{
TextReverseConversionGenerator(std::nullptr_t) noexcept {}
TextReverseConversionGenerator(void* ptr, take_ownership_from_abi_t) noexcept : Windows::Data::Text::ITextReverseConversionGenerator(ptr, take_ownership_from_abi) {}
TextReverseConversionGenerator(param::hstring const& languageTag);
};
struct UnicodeCharacters
{
UnicodeCharacters() = delete;
static auto GetCodepointFromSurrogatePair(uint32_t highSurrogate, uint32_t lowSurrogate);
static auto GetSurrogatePairFromCodepoint(uint32_t codepoint, char16_t& highSurrogate, char16_t& lowSurrogate);
static auto IsHighSurrogate(uint32_t codepoint);
static auto IsLowSurrogate(uint32_t codepoint);
static auto IsSupplementary(uint32_t codepoint);
static auto IsNoncharacter(uint32_t codepoint);
static auto IsWhitespace(uint32_t codepoint);
static auto IsAlphabetic(uint32_t codepoint);
static auto IsCased(uint32_t codepoint);
static auto IsUppercase(uint32_t codepoint);
static auto IsLowercase(uint32_t codepoint);
static auto IsIdStart(uint32_t codepoint);
static auto IsIdContinue(uint32_t codepoint);
static auto IsGraphemeBase(uint32_t codepoint);
static auto IsGraphemeExtend(uint32_t codepoint);
static auto GetNumericType(uint32_t codepoint);
static auto GetGeneralCategory(uint32_t codepoint);
};
struct __declspec(empty_bases) WordSegment : Windows::Data::Text::IWordSegment
{
WordSegment(std::nullptr_t) noexcept {}
WordSegment(void* ptr, take_ownership_from_abi_t) noexcept : Windows::Data::Text::IWordSegment(ptr, take_ownership_from_abi) {}
};
struct __declspec(empty_bases) WordsSegmenter : Windows::Data::Text::IWordsSegmenter
{
WordsSegmenter(std::nullptr_t) noexcept {}
WordsSegmenter(void* ptr, take_ownership_from_abi_t) noexcept : Windows::Data::Text::IWordsSegmenter(ptr, take_ownership_from_abi) {}
WordsSegmenter(param::hstring const& language);
};
}
#endif