Coder Social home page Coder Social logo

crossformattedtext's Introduction

Hello, welcome MeilCli's Profile


Languages and Tools

dotnet xamarin csharp android kotlin java nodejs angular typescript bootstrap html5 css3 sass

Repositories

Android UI library


GitHub Action for develop GitHub Action


GitHub Action for about PullRequest or Issue


GitHub Action of slack


GitHub Action for improve workflow


GitHub Action of check updates


Other


crossformattedtext's People

Contributors

meilcli avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

inquisitorjax

crossformattedtext's Issues

FeatureRequest: cross-platform .Substring() method for FormattedText

This is a very useful library! Thank you for creating this!
Cross platform management of formatted strings is very hard!
This will help a lot! But I have a feature request: a cross-platform .Substring() method for FormattedText.

REASON: Many times working on .Net/Xamarin cross platforms apps I have the need to extract or replace a SUBSTRING from a FormattedString, while KEEPING the formatting on all platforms.

But if I use methods like myFormattedString.ToString().Substring() or myFormattedString.ToString().Replace(), all the formatting is LOST.

Usually I'm forced to manually split my substrings in chunks and replace letters and substrings going span by span. But that code is long to write, ugly and error prone.

A Substring() or Replace() method working natively on your FormattedText would be awesome.

Once you add those, it would be easy to add other standard String methods like .Insert(), .Split(), .Trim(), .Contains(), .Remove(), .IndexOf(), and so on...

I think that would make your library a must for crossplatform developers! And in the end it will replace the string class completely. Rich text is now necessary in many mobile apps (emoticons, links, bold, etc), and this library that you created is a step in the right direction.

Thank you!

Feature: support modifiable Span reference operator

Now, FormattedString and FormattedStringBuilder's some Span reference is fixed.
Span references are added when some operation.

So, I think add Span reference combine and split operator to FormattedString(or FormattedStringBuilder)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.