Skip to content

Add TextTransform KTX#47525

Closed
tdn120 wants to merge 1 commit into
facebook:mainfrom
tdn120:export-D65618709
Closed

Add TextTransform KTX#47525
tdn120 wants to merge 1 commit into
facebook:mainfrom
tdn120:export-D65618709

Conversation

@tdn120
Copy link
Copy Markdown

@tdn120 tdn120 commented Nov 8, 2024

Summary:
This API is awkward for nullsafe code. Adding an extension allows Kotlin code to use applyTextTransform() on either nullable or non-null strings:

val a: String = string.applyTextTransform(...)
val b: String? = nullableString?.applyTextTransform(...)

Changelog:
[Android][Added] TextTransform ktx

Reviewed By: javache

Differential Revision: D65618709

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Nov 8, 2024
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D65618709

Summary:

This API is awkward for nullsafe code.  Adding an extension allows Kotlin code to use `applyTextTransform()` on either nullable or non-null strings:
```
val a: String = string.applyTextTransform(...)
val b: String? = nullableString?.applyTextTransform(...)
```
Changelog:
[Android][Added] TextTransform ktx

Reviewed By: javache

Differential Revision: D65618709
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D65618709

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 7794d7a.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Nov 9, 2024
@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by Thomas Nardone in 7794d7a

When will my fix make it into a release? | How to file a pick request?

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

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants