Skip to content

Refactored utf16->utf8 support from DynDep to common#1513

Merged
DrusTheAxe merged 1 commit intomainfrom
user/drustheaxe/toutf8
Oct 4, 2021
Merged

Refactored utf16->utf8 support from DynDep to common#1513
DrusTheAxe merged 1 commit intomainfrom
user/drustheaxe/toutf8

Conversation

@DrusTheAxe
Copy link
Copy Markdown
Member

@DrusTheAxe DrusTheAxe commented Sep 30, 2021

Moved DynamicDependency's to_utf8 functions to Microsoft.Utf8.h (and renamed ToUtf8) as the complementary inverse of the ToUtf16 functions already there.

Deleted DynDep's now-obsolete utf8.h and changed to the Microsoft.Utf8 namespace functions. All tests pass as expected

@DrusTheAxe DrusTheAxe added the area-DynamicDependencies DynamicDependency for Windows App SDK: enables framework packages for packaged & unpackaged apps label Sep 30, 2021
@DrusTheAxe DrusTheAxe added this to the 1.0 (2021 Q4) milestone Sep 30, 2021
@DrusTheAxe DrusTheAxe self-assigned this Sep 30, 2021
@ghost ghost added the needs-triage label Sep 30, 2021
@DrusTheAxe
Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@DrusTheAxe DrusTheAxe requested review from EHO-makai, huzaifa-d and jonwis and removed request for hulumane September 30, 2021 01:10
@DrusTheAxe
Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@pmpurifoy
Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@DrusTheAxe
Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@DrusTheAxe DrusTheAxe merged commit 8220878 into main Oct 4, 2021
@DrusTheAxe DrusTheAxe deleted the user/drustheaxe/toutf8 branch October 4, 2021 20:13
return ToUtf16<winrt::hstring>(utf8);
}

// UTF16->UTF8 conversions
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DrusTheAxe could you clarify why are all these needed / why don't we use winrt::to_hstring and winrt::to_string ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-DynamicDependencies DynamicDependency for Windows App SDK: enables framework packages for packaged & unpackaged apps needs-triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants