elm-community / string-extra

String helper functions for Elm.

Home Page:http://package.elm-lang.org/packages/elm-community/string-extra/latest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

List of functions that should be in 1.0.0

jaapz opened this issue · comments

  • decapitalize
  • classify
  • camelize
  • isBlank
  • clean
  • softBreak
  • break
  • insertAt
  • replaceSlice
  • replace
  • toTitleCase
  • toSentenceCase
  • cleanDiacritics
  • countOccurances
  • wrap
  • wrapWith
  • softWrap (missing tests)
  • softWrapWith (missing tests)
  • humanize
  • dasherize
  • underscored
  • unindent
  • truncate
  • softTruncate (missing tests)
  • strRight rightOf (missing tests)
  • strRightBack rightOfBack (missing tests)
  • strLeft leftOf (missing tests)
  • strLeftBack leftOfBack (missing tests)
  • stripTags (missing tests)
  • toSentence (missing tests)
  • toSentenceOxford (missing tests)
  • surround
  • unsurround
  • quote
  • unquote
  • slugify
  • naturalCompare

@lorenzo i copied the list from the slack channel to here so we can keep track of what's done and what still needs to be done

Thanks, good idea

It's not clear from the listed function names, so I guess I'd best ask:

How about the two functions currently in https://github.com/elm-community/elm-string-split, namely chunksOfLeft : Int -> String -> List String and chunksOfRight : Int -> String -> List String?

@jvoigtlaender chunksOfLeft is named break in this repo... I'm not sure if there is an actual use case for chunksOfRight but I'd be happy to include it if there is one

I'll take the liberty of closing this ticket. The majority of functions are already implemented, and only those that need to deal with different collations of special characters are left out. They are maybe good material for another package.