Skip to content

Tonku/Swift-2.2-Concurrency

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

README

Example usage NSOperation for concurrency in swift 2.2 to find the following patterns in a string and compose a JSON.

1, EmotIcons - Emoticons which are alphanumeric strings, no longer than 15 characters, contained in parenthesis eg (success)

2, Mentions - Always starts with an '@' and ends when hitting a non-word character e.g. @saiserf

3, URLs - Detect urls in the chat plus the title of that url.

Eg input, hello @tonku see the (funny) news www.cnn.com

the output is {"links" : [ {"title" : "CNN - Breaking News, U.S., World, Weather, Entertainment & Video News","url" : "http:\www.cnn.com" } ], "emoticons" : ["funny"],"mentions" : ["@tonku","@daigdn" ]}

The flow diagram of the app is given below

HipChatFlow.png

About

NSOperation for concurrency in swift 2.2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages