This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension String { | |
func englishNumbers() -> String? { | |
let oldCount = self.characters.count | |
let formatter: NumberFormatter = NumberFormatter() | |
formatter.locale = Locale(identifier: "EN") | |
if let final = formatter.number(from: self) { | |
let newCount = "\(final)".characters.count | |
let differ = oldCount - newCount | |
if differ == 0 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"status":"success","data":[{"id":1,"title":"504 Essential Words","sections":42,"words":504,"level":1,"cover":"https://kbimages1-a.akamaihd.net/5cd1081c-f892-4038-ab49-bafb62f6cde5/353/569/90/False/504-absolutely-essential-words.jpg"},{"id":1,"title":"Street Talk","sections":8,"words":145,"level":2,"cover":"https://images-na.ssl-images-amazon.com/images/I/71T4K0GEW8L._SX309_BO1,204,203,200_.gif"}]} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"status":"success","meta":{"code":200,"message":"success."},"data":[{"id":1,"title":"درس ۱"},{"id":2,"title":"درس ۲"},{"id":3,"title":"درس ۳"},{"id":4,"title":"درس ۴"}]} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"status": "success", | |
"data": [ | |
{ | |
"id" : 1, | |
"word": "abandon", | |
"phonetic": "əˈbændən", | |
"discussion": { | |
"main": "عبارت abandon something یعنی چیزی را رها کردن. اگر شما داخل کلبهای باشید و این کلبه آتش بگیره، بهتره که کلبه را رها(abandon) کنید.", | |
"sub": "" |