All Projects → willpowell8 → DictionaryUtils

willpowell8 / DictionaryUtils

Licence: MIT license
iOS Dictionary Utilities for Swift - allowing you to pull properties from a dictionary using a string eg. data.readString("field[0].name")

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to DictionaryUtils

myRime
我的 Rime 配置,适用于朙月拼音/小鹤双拼/小狼毫 /ibus
Stars: ✭ 46 (+253.85%)
Mutual labels:  dictionary
jorkens
epub reader based on epub.js for foreign language learners
Stars: ✭ 35 (+169.23%)
Mutual labels:  dictionary
alfred-powerthesaurus
Search Powerthesaurus synonyms and antonyms from Alfred
Stars: ✭ 81 (+523.08%)
Mutual labels:  dictionary
realm-mapper-ios
Realm + ObjectMapper
Stars: ✭ 28 (+115.38%)
Mutual labels:  objectmapper
google-dictionary
An android library that provides easy access to meanings of any word, phrase, or slang via Google, within any application
Stars: ✭ 46 (+253.85%)
Mutual labels:  dictionary
syng
A free, open source, cross-platform, Chinese-To-English dictionary for desktops.
Stars: ✭ 108 (+730.77%)
Mutual labels:  dictionary
ObjectMapper RealmSwift
Helps to parse RealmSwift's List<Class>() and RealmOptional<T>() properties with ObjectMapper framework.
Stars: ✭ 17 (+30.77%)
Mutual labels:  objectmapper
ka GE.spell
ქართული ორთოგრაფიული ლექსიკონი - Georgian Spell Checking Dictionary
Stars: ✭ 24 (+84.62%)
Mutual labels:  dictionary
Parf-Edhellen
A dictionary for Tolkien's languages
Stars: ✭ 57 (+338.46%)
Mutual labels:  dictionary
technical-glossary
📝 A collaborative technical glossary for key words and terms to help anyone learn and understand concepts and prepare for a career as a creative technologist! 😕 > 🤔 > 💡 > 😊 🎉 🚀
Stars: ✭ 18 (+38.46%)
Mutual labels:  dictionary
moonstar
MoonStar Türkçe Dil Kılavuzu
Stars: ✭ 11 (-15.38%)
Mutual labels:  dictionary
waylan android
A dictionary concept for Android ~ Making words and their meanings available through a natural and beautiful experience
Stars: ✭ 13 (+0%)
Mutual labels:  dictionary
nzsl-online
New Zealand Sign Language Dictionary
Stars: ✭ 30 (+130.77%)
Mutual labels:  dictionary
jiten
jiten - japanese android/cli/web dictionary based on jmdict/kanjidic — 日本語 辞典 和英辞典 漢英字典 和独辞典 和蘭辞典
Stars: ✭ 64 (+392.31%)
Mutual labels:  dictionary
vortaro
Simple Esperanto-English dictionary inspired by Tuja Vortaro
Stars: ✭ 17 (+30.77%)
Mutual labels:  dictionary
assoc-list
Dictionary with custom keys implemented using association lists
Stars: ✭ 30 (+130.77%)
Mutual labels:  dictionary
cmu-pronouncing-dictionary
The 134,000+ words and their pronunciations in the CMU pronouncing dictionary
Stars: ✭ 46 (+253.85%)
Mutual labels:  dictionary
alfred-duden
Search the duden.de German dictionary from Alfred. With auto-suggest.
Stars: ✭ 32 (+146.15%)
Mutual labels:  dictionary
elasticsearch-croatian
Elasticsearch compatible Hunspell dictionary for Croatian.
Stars: ✭ 16 (+23.08%)
Mutual labels:  dictionary
AlamofireMapper
Mapper for Alamofire use Swift 4 decoable
Stars: ✭ 18 (+38.46%)
Mutual labels:  objectmapper

alt text

DictionaryUtils

Dictionary utils allows you to use JSON like referencing to travers an object.

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

DictionaryUtils is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "DictionaryUtils"

Usage

Lets say we define an aribitary dictionary that has an arrry within it. We ideally want to be able to access properties without referencing each child object, but in a more friendly fashion.

let data = ["data":["ary":[["value":1,"property1":"WELCOME"],["value":0,"property1":"WELCOME2"]]]]

We can find the property of a child by using the the following code

do {
    let output = try data.readString("data.ary[0].property1")
    print(output!)
}catch{
    print("ERROR")
}

This library will also let you do parameter based discovery within arrays like the below example:

do {
    let output = try data.readString("data.ary[value=0].property1")
    print(output!)
}catch{
    print("ERROR")
}

Author

willpowell8

License

DictionaryUtils is available under the MIT license. See the LICENSE file for more info.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].