├── .github └── FUNDING.yml ├── .travis.yml ├── Chapter 2 ├── Canonical Equivalence.playground │ ├── Contents.swift │ └── contents.xcplayground ├── Character Number Values.playground │ ├── Contents.swift │ └── contents.xcplayground ├── Emoji Detection.playground │ ├── Contents.swift │ └── contents.xcplayground ├── String Indexes.playground │ ├── Contents.swift │ └── contents.xcplayground ├── String Literals.playground │ ├── Contents.swift │ └── contents.xcplayground └── Unicode Views.playground │ ├── Contents.swift │ ├── Sources │ └── UnicodeScalar+CodePoint.swift │ └── contents.xcplayground ├── Chapter 3 ├── Booking Class.playground │ ├── Contents.swift │ ├── Sources │ │ └── BookingClass.swift │ └── contents.xcplayground ├── Flight Code.playground │ ├── Contents.swift │ ├── Sources │ │ └── FlightCode.swift │ └── contents.xcplayground ├── StderrOutputStream.playground │ ├── Contents.swift │ ├── Sources │ │ └── StderrOutputStream.swift │ └── contents.xcplayground ├── String as BidirectionalCollection.playground │ ├── Contents.swift │ └── contents.xcplayground ├── String as Collection.playground │ ├── Contents.swift │ └── contents.xcplayground ├── String as RangeReplaceableCollection.playground │ ├── Contents.swift │ └── contents.xcplayground ├── String as Sequence.playground │ ├── Contents.swift │ └── contents.xcplayground ├── String as StringProtocol.playground │ ├── Contents.swift │ └── contents.xcplayground ├── Unicode Logger.playground │ ├── Contents.swift │ ├── Sources │ │ └── UnicodeLogger.swift │ └── contents.xcplayground └── Unicode Styling.playground │ ├── Contents.swift │ ├── Sources │ ├── Style+CharacterVariants.swift │ ├── Style.swift │ └── StyledString.swift │ └── contents.xcplayground ├── Chapter 4 ├── Locale Delimiters.playground │ ├── Contents.swift │ └── contents.xcplayground ├── Localized Case Mapping.playground │ ├── Contents.swift │ └── contents.xcplayground ├── Localized Comparison.playground │ ├── Contents.swift │ └── contents.xcplayground ├── Localized Searching.playground │ ├── Contents.swift │ └── contents.xcplayground ├── Normalization Forms.playground │ ├── Contents.swift │ └── contents.xcplayground ├── Numeric String Sorting.playground │ ├── Contents.swift │ └── contents.xcplayground ├── Range Conversion.playground │ ├── Contents.swift │ └── contents.xcplayground ├── String Encoding Conversion.playground │ ├── Contents.swift │ └── contents.xcplayground ├── String Format.playground │ ├── Contents.swift │ └── contents.xcplayground ├── String Transformation.playground │ ├── Contents.swift │ └── contents.xcplayground ├── String from Data.playground │ ├── Contents.swift │ ├── Resources │ │ └── file.txt │ └── contents.xcplayground ├── Trimming.playground │ ├── Contents.swift │ └── contents.xcplayground └── URL Encoding.playground │ ├── Contents.swift │ └── contents.xcplayground ├── Chapter 5 ├── Base16.playground │ ├── Contents.swift │ └── contents.xcplayground ├── Base2.playground │ ├── Contents.swift │ └── contents.xcplayground ├── Base64.playground │ ├── Contents.swift │ └── contents.xcplayground ├── BaseEmojiPerson.playground │ ├── Contents.swift │ ├── Sources │ │ └── Data+BaseEmojiPersonEncoding.swift │ └── contents.xcplayground └── HumanReadable.playground │ ├── Contents.swift │ ├── Sources │ ├── BitSequence.swift │ └── Data+HumanReadableWordEncoding.swift │ └── contents.xcplayground ├── Chapter 6 ├── AFTN Regular Expression.playground │ ├── Contents.swift │ └── contents.xcplayground ├── AFTN Scanner.playground │ ├── Contents.swift │ ├── Sources │ │ ├── CharacterSet+Convenience.swift │ │ └── Scanner+Convenience.swift │ └── contents.xcplayground └── AFTN │ ├── .gitignore │ ├── AFTN.playground │ ├── Contents.swift │ └── contents.xcplayground │ ├── AFTN.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist │ ├── Brewfile │ ├── Makefile │ ├── Package.resolved │ ├── Package.swift │ ├── README.md │ ├── Resources │ └── AFTN.g4 │ ├── Sources │ └── AFTN │ │ ├── Message+Parser.swift │ │ ├── Message.swift │ │ └── Resources │ │ ├── AFTN.interp │ │ ├── AFTN.tokens │ │ ├── AFTNBaseListener.swift │ │ ├── AFTNBaseVisitor.swift │ │ ├── AFTNLexer.interp │ │ ├── AFTNLexer.swift │ │ ├── AFTNLexer.tokens │ │ ├── AFTNLexerATN.swift │ │ ├── AFTNListener.swift │ │ ├── AFTNParser.swift │ │ ├── AFTNParserATN.swift │ │ └── AFTNVisitor.swift │ └── Tests │ ├── AFTNTests │ ├── AFTNTests.swift │ └── XCTestManifests.swift │ └── LinuxMain.swift ├── Chapter 7 ├── Keyword Extraction.playground │ ├── Contents.swift │ ├── Sources │ │ └── NLTag+CustomStringConvertible.swift │ └── contents.xcplayground ├── Language Recognizer Hints.playground │ ├── Contents.swift │ ├── Sources │ │ └── NLLanguage+CustomStringConvertible.swift │ └── contents.xcplayground ├── Language Recognizer.playground │ ├── Contents.swift │ ├── Sources │ │ └── NLLanguage+CustomStringConvertible.swift │ └── contents.xcplayground ├── Language Tagging.playground │ ├── Contents.swift │ ├── Sources │ │ └── NLTag+CustomStringConvertible.swift │ └── contents.xcplayground ├── Lemmatization.playground │ ├── Contents.swift │ └── contents.xcplayground ├── Levenshtein Distance.playground │ ├── Contents.swift │ ├── Sources │ │ ├── Matrix+CustomPlaygroundDisplayConvertible.swift │ │ └── Matrix.swift │ └── contents.xcplayground ├── Markov Chain.playground │ ├── Contents.swift │ ├── Resources │ │ └── LDC94S14A-sample.txt │ ├── Sources │ │ ├── BigramSequence.swift │ │ ├── MarkovChain.swift │ │ └── SentencesAndWords.swift │ └── contents.xcplayground ├── NGrams.playground │ ├── Contents.swift │ ├── Sources │ │ └── NGramSequences.swift │ └── contents.xcplayground ├── Naive Bayes Classifier.playground │ ├── Contents.swift │ ├── Sources │ │ ├── NaiveBayesClassifier+Text.swift │ │ └── NaiveBayesClassifier.swift │ └── contents.xcplayground ├── Named Entity Recognition.playground │ ├── Contents.swift │ └── contents.xcplayground ├── Part of Speech Tagging.playground │ ├── Contents.swift │ └── contents.xcplayground ├── Sentiment Classification.playground │ ├── Contents.swift │ ├── Resources │ │ └── SentimentClassifier.mlmodelc │ │ │ └── coremldata.bin │ └── contents.xcplayground ├── Sentiment Classifier Model Trainer.playground │ ├── Contents.swift │ ├── Resources │ │ ├── MyView.xib │ │ └── tweets.csv │ └── contents.xcplayground ├── Soundex.playground │ ├── Contents.swift │ ├── Sources │ │ ├── Soundex.swift │ │ └── StringProtocol+RightPad.swift │ └── contents.xcplayground ├── Spell Checker.playground │ ├── Contents.swift │ ├── Resources │ │ └── LDC2006T13-sample.txt │ ├── Sources │ │ ├── Levenshtein.swift │ │ └── SpellChecker.swift │ └── contents.xcplayground └── Tokenization.playground │ ├── Contents.swift │ └── contents.xcplayground ├── README.md └── cover.jpg /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: [mattt] 2 | custom: https://flight.school/books/strings 3 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/.travis.yml -------------------------------------------------------------------------------- /Chapter 2/Canonical Equivalence.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 2/Canonical Equivalence.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 2/Canonical Equivalence.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 2/Canonical Equivalence.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 2/Character Number Values.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 2/Character Number Values.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 2/Character Number Values.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 2/Character Number Values.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 2/Emoji Detection.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 2/Emoji Detection.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 2/Emoji Detection.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 2/Emoji Detection.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 2/String Indexes.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 2/String Indexes.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 2/String Indexes.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 2/String Indexes.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 2/String Literals.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 2/String Literals.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 2/String Literals.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 2/String Literals.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 2/Unicode Views.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 2/Unicode Views.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 2/Unicode Views.playground/Sources/UnicodeScalar+CodePoint.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 2/Unicode Views.playground/Sources/UnicodeScalar+CodePoint.swift -------------------------------------------------------------------------------- /Chapter 2/Unicode Views.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 2/Unicode Views.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 3/Booking Class.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 3/Booking Class.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 3/Booking Class.playground/Sources/BookingClass.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 3/Booking Class.playground/Sources/BookingClass.swift -------------------------------------------------------------------------------- /Chapter 3/Booking Class.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 3/Booking Class.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 3/Flight Code.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 3/Flight Code.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 3/Flight Code.playground/Sources/FlightCode.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 3/Flight Code.playground/Sources/FlightCode.swift -------------------------------------------------------------------------------- /Chapter 3/Flight Code.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 3/Flight Code.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 3/StderrOutputStream.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 3/StderrOutputStream.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 3/StderrOutputStream.playground/Sources/StderrOutputStream.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 3/StderrOutputStream.playground/Sources/StderrOutputStream.swift -------------------------------------------------------------------------------- /Chapter 3/StderrOutputStream.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 3/StderrOutputStream.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 3/String as BidirectionalCollection.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 3/String as BidirectionalCollection.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 3/String as BidirectionalCollection.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 3/String as BidirectionalCollection.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 3/String as Collection.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 3/String as Collection.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 3/String as Collection.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 3/String as Collection.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 3/String as RangeReplaceableCollection.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 3/String as RangeReplaceableCollection.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 3/String as RangeReplaceableCollection.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 3/String as RangeReplaceableCollection.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 3/String as Sequence.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 3/String as Sequence.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 3/String as Sequence.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 3/String as Sequence.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 3/String as StringProtocol.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 3/String as StringProtocol.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 3/String as StringProtocol.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 3/String as StringProtocol.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 3/Unicode Logger.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 3/Unicode Logger.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 3/Unicode Logger.playground/Sources/UnicodeLogger.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 3/Unicode Logger.playground/Sources/UnicodeLogger.swift -------------------------------------------------------------------------------- /Chapter 3/Unicode Logger.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 3/Unicode Logger.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 3/Unicode Styling.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 3/Unicode Styling.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 3/Unicode Styling.playground/Sources/Style+CharacterVariants.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 3/Unicode Styling.playground/Sources/Style+CharacterVariants.swift -------------------------------------------------------------------------------- /Chapter 3/Unicode Styling.playground/Sources/Style.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 3/Unicode Styling.playground/Sources/Style.swift -------------------------------------------------------------------------------- /Chapter 3/Unicode Styling.playground/Sources/StyledString.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 3/Unicode Styling.playground/Sources/StyledString.swift -------------------------------------------------------------------------------- /Chapter 3/Unicode Styling.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 3/Unicode Styling.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 4/Locale Delimiters.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 4/Locale Delimiters.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 4/Locale Delimiters.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 4/Locale Delimiters.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 4/Localized Case Mapping.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 4/Localized Case Mapping.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 4/Localized Case Mapping.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 4/Localized Case Mapping.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 4/Localized Comparison.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 4/Localized Comparison.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 4/Localized Comparison.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 4/Localized Comparison.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 4/Localized Searching.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 4/Localized Searching.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 4/Localized Searching.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 4/Localized Searching.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 4/Normalization Forms.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 4/Normalization Forms.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 4/Normalization Forms.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 4/Normalization Forms.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 4/Numeric String Sorting.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 4/Numeric String Sorting.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 4/Numeric String Sorting.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 4/Numeric String Sorting.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 4/Range Conversion.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 4/Range Conversion.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 4/Range Conversion.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 4/Range Conversion.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 4/String Encoding Conversion.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 4/String Encoding Conversion.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 4/String Encoding Conversion.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 4/String Encoding Conversion.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 4/String Format.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 4/String Format.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 4/String Format.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 4/String Format.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 4/String Transformation.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 4/String Transformation.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 4/String Transformation.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 4/String Transformation.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 4/String from Data.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 4/String from Data.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 4/String from Data.playground/Resources/file.txt: -------------------------------------------------------------------------------- 1 | Hello! 2 | -------------------------------------------------------------------------------- /Chapter 4/String from Data.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 4/String from Data.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 4/Trimming.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 4/Trimming.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 4/Trimming.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 4/Trimming.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 4/URL Encoding.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 4/URL Encoding.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 4/URL Encoding.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 4/URL Encoding.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 5/Base16.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 5/Base16.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 5/Base16.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 5/Base16.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 5/Base2.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 5/Base2.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 5/Base2.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 5/Base2.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 5/Base64.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 5/Base64.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 5/Base64.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 5/Base64.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 5/BaseEmojiPerson.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 5/BaseEmojiPerson.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 5/BaseEmojiPerson.playground/Sources/Data+BaseEmojiPersonEncoding.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 5/BaseEmojiPerson.playground/Sources/Data+BaseEmojiPersonEncoding.swift -------------------------------------------------------------------------------- /Chapter 5/BaseEmojiPerson.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 5/BaseEmojiPerson.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 5/HumanReadable.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 5/HumanReadable.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 5/HumanReadable.playground/Sources/BitSequence.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 5/HumanReadable.playground/Sources/BitSequence.swift -------------------------------------------------------------------------------- /Chapter 5/HumanReadable.playground/Sources/Data+HumanReadableWordEncoding.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 5/HumanReadable.playground/Sources/Data+HumanReadableWordEncoding.swift -------------------------------------------------------------------------------- /Chapter 5/HumanReadable.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 5/HumanReadable.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 6/AFTN Regular Expression.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 6/AFTN Regular Expression.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 6/AFTN Regular Expression.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 6/AFTN Regular Expression.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 6/AFTN Scanner.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 6/AFTN Scanner.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 6/AFTN Scanner.playground/Sources/CharacterSet+Convenience.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 6/AFTN Scanner.playground/Sources/CharacterSet+Convenience.swift -------------------------------------------------------------------------------- /Chapter 6/AFTN Scanner.playground/Sources/Scanner+Convenience.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 6/AFTN Scanner.playground/Sources/Scanner+Convenience.swift -------------------------------------------------------------------------------- /Chapter 6/AFTN Scanner.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 6/AFTN Scanner.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 6/AFTN/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | /.build 3 | /Packages 4 | /*.xcodeproj 5 | .antlr 6 | -------------------------------------------------------------------------------- /Chapter 6/AFTN/AFTN.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 6/AFTN/AFTN.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 6/AFTN/AFTN.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 6/AFTN/AFTN.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 6/AFTN/AFTN.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 6/AFTN/AFTN.xcworkspace/contents.xcworkspacedata -------------------------------------------------------------------------------- /Chapter 6/AFTN/AFTN.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 6/AFTN/AFTN.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist -------------------------------------------------------------------------------- /Chapter 6/AFTN/Brewfile: -------------------------------------------------------------------------------- 1 | brew "antlr" 2 | -------------------------------------------------------------------------------- /Chapter 6/AFTN/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 6/AFTN/Makefile -------------------------------------------------------------------------------- /Chapter 6/AFTN/Package.resolved: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 6/AFTN/Package.resolved -------------------------------------------------------------------------------- /Chapter 6/AFTN/Package.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 6/AFTN/Package.swift -------------------------------------------------------------------------------- /Chapter 6/AFTN/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 6/AFTN/README.md -------------------------------------------------------------------------------- /Chapter 6/AFTN/Resources/AFTN.g4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 6/AFTN/Resources/AFTN.g4 -------------------------------------------------------------------------------- /Chapter 6/AFTN/Sources/AFTN/Message+Parser.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 6/AFTN/Sources/AFTN/Message+Parser.swift -------------------------------------------------------------------------------- /Chapter 6/AFTN/Sources/AFTN/Message.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 6/AFTN/Sources/AFTN/Message.swift -------------------------------------------------------------------------------- /Chapter 6/AFTN/Sources/AFTN/Resources/AFTN.interp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 6/AFTN/Sources/AFTN/Resources/AFTN.interp -------------------------------------------------------------------------------- /Chapter 6/AFTN/Sources/AFTN/Resources/AFTN.tokens: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 6/AFTN/Sources/AFTN/Resources/AFTN.tokens -------------------------------------------------------------------------------- /Chapter 6/AFTN/Sources/AFTN/Resources/AFTNBaseListener.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 6/AFTN/Sources/AFTN/Resources/AFTNBaseListener.swift -------------------------------------------------------------------------------- /Chapter 6/AFTN/Sources/AFTN/Resources/AFTNBaseVisitor.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 6/AFTN/Sources/AFTN/Resources/AFTNBaseVisitor.swift -------------------------------------------------------------------------------- /Chapter 6/AFTN/Sources/AFTN/Resources/AFTNLexer.interp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 6/AFTN/Sources/AFTN/Resources/AFTNLexer.interp -------------------------------------------------------------------------------- /Chapter 6/AFTN/Sources/AFTN/Resources/AFTNLexer.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 6/AFTN/Sources/AFTN/Resources/AFTNLexer.swift -------------------------------------------------------------------------------- /Chapter 6/AFTN/Sources/AFTN/Resources/AFTNLexer.tokens: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 6/AFTN/Sources/AFTN/Resources/AFTNLexer.tokens -------------------------------------------------------------------------------- /Chapter 6/AFTN/Sources/AFTN/Resources/AFTNLexerATN.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 6/AFTN/Sources/AFTN/Resources/AFTNLexerATN.swift -------------------------------------------------------------------------------- /Chapter 6/AFTN/Sources/AFTN/Resources/AFTNListener.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 6/AFTN/Sources/AFTN/Resources/AFTNListener.swift -------------------------------------------------------------------------------- /Chapter 6/AFTN/Sources/AFTN/Resources/AFTNParser.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 6/AFTN/Sources/AFTN/Resources/AFTNParser.swift -------------------------------------------------------------------------------- /Chapter 6/AFTN/Sources/AFTN/Resources/AFTNParserATN.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 6/AFTN/Sources/AFTN/Resources/AFTNParserATN.swift -------------------------------------------------------------------------------- /Chapter 6/AFTN/Sources/AFTN/Resources/AFTNVisitor.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 6/AFTN/Sources/AFTN/Resources/AFTNVisitor.swift -------------------------------------------------------------------------------- /Chapter 6/AFTN/Tests/AFTNTests/AFTNTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 6/AFTN/Tests/AFTNTests/AFTNTests.swift -------------------------------------------------------------------------------- /Chapter 6/AFTN/Tests/AFTNTests/XCTestManifests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 6/AFTN/Tests/AFTNTests/XCTestManifests.swift -------------------------------------------------------------------------------- /Chapter 6/AFTN/Tests/LinuxMain.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 6/AFTN/Tests/LinuxMain.swift -------------------------------------------------------------------------------- /Chapter 7/Keyword Extraction.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Keyword Extraction.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 7/Keyword Extraction.playground/Sources/NLTag+CustomStringConvertible.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Keyword Extraction.playground/Sources/NLTag+CustomStringConvertible.swift -------------------------------------------------------------------------------- /Chapter 7/Keyword Extraction.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Keyword Extraction.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 7/Language Recognizer Hints.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Language Recognizer Hints.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 7/Language Recognizer Hints.playground/Sources/NLLanguage+CustomStringConvertible.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Language Recognizer Hints.playground/Sources/NLLanguage+CustomStringConvertible.swift -------------------------------------------------------------------------------- /Chapter 7/Language Recognizer Hints.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Language Recognizer Hints.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 7/Language Recognizer.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Language Recognizer.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 7/Language Recognizer.playground/Sources/NLLanguage+CustomStringConvertible.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Language Recognizer.playground/Sources/NLLanguage+CustomStringConvertible.swift -------------------------------------------------------------------------------- /Chapter 7/Language Recognizer.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Language Recognizer.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 7/Language Tagging.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Language Tagging.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 7/Language Tagging.playground/Sources/NLTag+CustomStringConvertible.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Language Tagging.playground/Sources/NLTag+CustomStringConvertible.swift -------------------------------------------------------------------------------- /Chapter 7/Language Tagging.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Language Tagging.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 7/Lemmatization.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Lemmatization.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 7/Lemmatization.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Lemmatization.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 7/Levenshtein Distance.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Levenshtein Distance.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 7/Levenshtein Distance.playground/Sources/Matrix+CustomPlaygroundDisplayConvertible.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Levenshtein Distance.playground/Sources/Matrix+CustomPlaygroundDisplayConvertible.swift -------------------------------------------------------------------------------- /Chapter 7/Levenshtein Distance.playground/Sources/Matrix.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Levenshtein Distance.playground/Sources/Matrix.swift -------------------------------------------------------------------------------- /Chapter 7/Levenshtein Distance.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Levenshtein Distance.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 7/Markov Chain.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Markov Chain.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 7/Markov Chain.playground/Resources/LDC94S14A-sample.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Markov Chain.playground/Resources/LDC94S14A-sample.txt -------------------------------------------------------------------------------- /Chapter 7/Markov Chain.playground/Sources/BigramSequence.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Markov Chain.playground/Sources/BigramSequence.swift -------------------------------------------------------------------------------- /Chapter 7/Markov Chain.playground/Sources/MarkovChain.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Markov Chain.playground/Sources/MarkovChain.swift -------------------------------------------------------------------------------- /Chapter 7/Markov Chain.playground/Sources/SentencesAndWords.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Markov Chain.playground/Sources/SentencesAndWords.swift -------------------------------------------------------------------------------- /Chapter 7/Markov Chain.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Markov Chain.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 7/NGrams.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/NGrams.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 7/NGrams.playground/Sources/NGramSequences.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/NGrams.playground/Sources/NGramSequences.swift -------------------------------------------------------------------------------- /Chapter 7/NGrams.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/NGrams.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 7/Naive Bayes Classifier.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Naive Bayes Classifier.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 7/Naive Bayes Classifier.playground/Sources/NaiveBayesClassifier+Text.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Naive Bayes Classifier.playground/Sources/NaiveBayesClassifier+Text.swift -------------------------------------------------------------------------------- /Chapter 7/Naive Bayes Classifier.playground/Sources/NaiveBayesClassifier.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Naive Bayes Classifier.playground/Sources/NaiveBayesClassifier.swift -------------------------------------------------------------------------------- /Chapter 7/Naive Bayes Classifier.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Naive Bayes Classifier.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 7/Named Entity Recognition.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Named Entity Recognition.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 7/Named Entity Recognition.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Named Entity Recognition.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 7/Part of Speech Tagging.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Part of Speech Tagging.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 7/Part of Speech Tagging.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Part of Speech Tagging.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 7/Sentiment Classification.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Sentiment Classification.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 7/Sentiment Classification.playground/Resources/SentimentClassifier.mlmodelc/coremldata.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Sentiment Classification.playground/Resources/SentimentClassifier.mlmodelc/coremldata.bin -------------------------------------------------------------------------------- /Chapter 7/Sentiment Classification.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Sentiment Classification.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 7/Sentiment Classifier Model Trainer.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Sentiment Classifier Model Trainer.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 7/Sentiment Classifier Model Trainer.playground/Resources/MyView.xib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Sentiment Classifier Model Trainer.playground/Resources/MyView.xib -------------------------------------------------------------------------------- /Chapter 7/Sentiment Classifier Model Trainer.playground/Resources/tweets.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Sentiment Classifier Model Trainer.playground/Resources/tweets.csv -------------------------------------------------------------------------------- /Chapter 7/Sentiment Classifier Model Trainer.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Sentiment Classifier Model Trainer.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 7/Soundex.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Soundex.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 7/Soundex.playground/Sources/Soundex.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Soundex.playground/Sources/Soundex.swift -------------------------------------------------------------------------------- /Chapter 7/Soundex.playground/Sources/StringProtocol+RightPad.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Soundex.playground/Sources/StringProtocol+RightPad.swift -------------------------------------------------------------------------------- /Chapter 7/Soundex.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Soundex.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 7/Spell Checker.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Spell Checker.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 7/Spell Checker.playground/Resources/LDC2006T13-sample.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Spell Checker.playground/Resources/LDC2006T13-sample.txt -------------------------------------------------------------------------------- /Chapter 7/Spell Checker.playground/Sources/Levenshtein.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Spell Checker.playground/Sources/Levenshtein.swift -------------------------------------------------------------------------------- /Chapter 7/Spell Checker.playground/Sources/SpellChecker.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Spell Checker.playground/Sources/SpellChecker.swift -------------------------------------------------------------------------------- /Chapter 7/Spell Checker.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Spell Checker.playground/contents.xcplayground -------------------------------------------------------------------------------- /Chapter 7/Tokenization.playground/Contents.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Tokenization.playground/Contents.swift -------------------------------------------------------------------------------- /Chapter 7/Tokenization.playground/contents.xcplayground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/Chapter 7/Tokenization.playground/contents.xcplayground -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/README.md -------------------------------------------------------------------------------- /cover.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Flight-School/Guide-to-Swift-Strings-Sample-Code/HEAD/cover.jpg --------------------------------------------------------------------------------