Skip to content

swift String extension to use Python str functions

Notifications You must be signed in to change notification settings

suomesta/swift_Pystr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Pystr

Pystr is an extension library of Swift to be available functions of Python str.

Basic information

To use this library, include Pystr.swift and declare

import Pystr

How to use

Call functions in String extention "py", like

p = "abcde".py.partition("c") // p is ["ab", "c", "de"]

Notes

Unfortunately Swift's way of handling "¥r¥n" is different from Python's. If a string includes "¥r¥n", some functions do not work well.

Authors

toda

About

swift String extension to use Python str functions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published