This file contains 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
import Foundation | |
let allCodes: [(Int, String)] = [ | |
(NSFileNoSuchFileError,"NSFileNoSuchFileError"), | |
(NSFileLockingError,"NSFileLockingError"), | |
(NSFileReadUnknownError,"NSFileReadUnknownError"), | |
(NSFileReadNoPermissionError,"NSFileReadNoPermissionError"), | |
(NSFileReadInvalidFileNameError,"NSFileReadInvalidFileNameError"), | |
(NSFileReadCorruptFileError,"NSFileReadCorruptFileError"), | |
(NSFileReadNoSuchFileError,"NSFileReadNoSuchFileError"), |
This file contains 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
var nsqpd, | |
nsqpdp, | |
nspdbbpddp, | |
nsdqq = {}, | |
nsdqqbdqqd = {}, | |
nsdqbp, | |
nsqpbpd, | |
nsdqqb, | |
nsqpbpdqqd, | |
nsdbpdbqd, |
This file contains 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
// | |
// word_freq.cpp | |
// | |
// Created by Serj Epatov on 3/7/17. | |
// Copyright © 2017 Serj Epatov. All rights reserved. | |
// | |
// This small piece of code counts case–insensitive word frequency from UTF8 input file. | |
// It is locale-agnostic. | |
// It performs lowercase conversion for Latin, Eastern & Western European with díâçrïtìćš, Greek, Cyrillic and Armenian scripts. |