Giter Site home page Giter Site logo

artsabintsev / guitar Goto Github PK

View Code? Open in Web Editor NEW
658.0 10.0 33.0 1.89 MB

A Cross-Platform String and Regular Expression Library written in Swift.

Home Page: http://sabintsev.com/

License: MIT License

Swift 95.62% Ruby 3.11% Objective-C 1.28%
string-manipulation swift cross-platform ios tvos watchos macos swift-server cocoapods carthage

guitar's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

guitar's Issues

not working

i tryed to run you app in device but it's show everything is blank. it's shows only white screen nothing else

Deprecation warnings for string.character in Swift 4

Hi,
I am using Guitar with Swift 4 and getting the following deprecation warnings due to the character view of strings now being deprecated (strings in Swift 4 are collection types again).

This should be easy to solve, would you accept a PR for this?

screenshot 2018-01-01 19 41 01

Cocoapods Installation failure

Tried installing the library through cocoapods and it fails with the following error

[!] Unable to find a specification for Guitar``

From snake case to slug case

Hi, nice library ๐Ÿ‘

Just a question, how can I transform from case A to case B, like snake case to slug case hello_world -> hello-world? or from camel case to snake case, like helloWorld -> hello-world?

API inconsistency

Hi, pretty nice lib you've got there - great work!

I would just suggest a change in outputs of two methods that seem to be colliding in consistency:

let string = "hello world"
string.isLowercased() // False

let string = "HELLO WORLD"
string.isUpppercased() // True

It's quite hard to program around such cases where the statement holds for one type (uppercase), but not for the other (lowercase). Especially when you'd expect true from both. I know there are language constraints, but the API is then quite inconsistent.

Cheers!

Suggested function name changes

Something that has been prefixed or suffixed has had a prefix or suffix added to it. So I think those are bad names for trimming functions.

How about these four prototypes instead:

  func trimRight( keeping length: Int ) -> String
  func trimRight( removing length: Int ) -> String
  func trimLeft( keeping length: Int ) -> String
  func trimLeft( removing length: Int ) -> String

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.