ios stuff

This commit is contained in:
Vladislav Khorev 2014-12-14 00:12:23 +00:00
parent 07f372acb0
commit 6f57762c59
29 changed files with 1291 additions and 79 deletions

View File

@ -6,8 +6,10 @@
#include "utf8utf16.h"
#include "boost/regex.hpp"
#include "boost/algorithm/string/regex.hpp"
namespace AJ
{
@ -391,7 +393,7 @@ namespace AJ
return{ base + L"ый", base + L"ой" };
}
return{};
return std::set<std::wstring>();
}

View File

@ -206,9 +206,10 @@ std::wstring NounGrammaticalCaseToWString(NounGrammaticalCase nounGrammaticalCas
case NGC_P4_ACCUSATIVE: return L"NGC_P4_ACCUSATIVE";
case NGC_P5_INSTRUMENTAL: return L"NGC_P5_INSTRUMENTAL";
case NGC_P6_PREPOSITIONAL: return L"NGC_P6_PREPOSITIONAL";
default: return L"";
}
return L"";
}
NounGrammaticalCase WStringToNounGrammaticalCase(std::wstring str)

View File

@ -137,81 +137,5 @@ namespace http {
return true;
}
void RemoveDuplicates(std::vector<std::shared_ptr<WordPairInterface>>& wordPairSet)
{
size_t i = 0;
while (i < wordPairSet.size())
{
size_t j = i + 1;
while (j < wordPairSet.size())
{
if (*wordPairSet[i] == *wordPairSet[j])
{
wordPairSet.erase(wordPairSet.begin() + j);
j--;
}
j++;
}
i++;
}
}
boost::property_tree::wptree PrepareReport(std::wstring request)
{
boost::property_tree::wptree result;
std::cout <<"PrepareReport" << std::endl;
if (request.size() < 2)
{
result.put(L"error", L"String is too short");
}
int id = 0;
std::vector<std::shared_ptr<WordPairInterface>> wordPairSet;
NN::RecognizeNoun(request, wordPairSet);
AJ::RecognizeAdjective(request, wordPairSet);
VB::RecognizeVerb(request, wordPairSet);
OT::RecognizeWord(request, wordPairSet);
PP::RecognizeWord(request, wordPairSet);
RemoveDuplicates(wordPairSet);
boost::property_tree::wptree wordArr;
for (auto& wordPair : wordPairSet)
{
boost::property_tree::wptree nounTree;
nounTree.put(L"id", id);
nounTree.put(L"type", wordPair->getType());
nounTree.put(L"word", wordPair->word().GetWord());
nounTree.put_child(L"properties", wordPair->word().GetProperties());
nounTree.put_child(L"modificators", wordPair->wordModificator().GetModificators());
nounTree.put_child(L"translations", wordPair->word().CreateTranslationPropertyTree());
wordArr.push_back(std::make_pair(L"", nounTree));
id++;
}
result.put_child(L"words", wordArr);
return result;
}
} // namespace server
} // namespace http

View File

@ -14,6 +14,8 @@
#include <string>
#include "boost/property_tree/ptree.hpp"
#include "../reporter.h"
namespace http {
namespace server {
@ -40,7 +42,6 @@ private:
static bool url_decode(const std::string& in, std::string& out);
};
boost::property_tree::wptree PrepareReport(std::wstring request);
} // namespace server
} // namespace http

View File

@ -0,0 +1,571 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {
/* Begin PBXBuildFile section */
843BF91E1A3CFE20005FC6F3 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 843BF91D1A3CFE20005FC6F3 /* Foundation.framework */; };
843BF9201A3CFE20005FC6F3 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 843BF91F1A3CFE20005FC6F3 /* CoreGraphics.framework */; };
843BF9221A3CFE20005FC6F3 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 843BF9211A3CFE20005FC6F3 /* UIKit.framework */; };
843BF9281A3CFE20005FC6F3 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 843BF9261A3CFE20005FC6F3 /* InfoPlist.strings */; };
843BF92A1A3CFE20005FC6F3 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 843BF9291A3CFE20005FC6F3 /* main.m */; };
843BF92E1A3CFE20005FC6F3 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 843BF92D1A3CFE20005FC6F3 /* AppDelegate.m */; };
843BF9311A3CFE20005FC6F3 /* Main_iPhone.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 843BF92F1A3CFE20005FC6F3 /* Main_iPhone.storyboard */; };
843BF9341A3CFE20005FC6F3 /* Main_iPad.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 843BF9321A3CFE20005FC6F3 /* Main_iPad.storyboard */; };
843BF9371A3CFE20005FC6F3 /* FirstViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 843BF9361A3CFE20005FC6F3 /* FirstViewController.m */; };
843BF93A1A3CFE20005FC6F3 /* SecondViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 843BF9391A3CFE20005FC6F3 /* SecondViewController.m */; };
843BF93C1A3CFE21005FC6F3 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 843BF93B1A3CFE21005FC6F3 /* Images.xcassets */; };
843BF9431A3CFE21005FC6F3 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 843BF9421A3CFE21005FC6F3 /* XCTest.framework */; };
843BF9441A3CFE21005FC6F3 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 843BF91D1A3CFE20005FC6F3 /* Foundation.framework */; };
843BF9451A3CFE21005FC6F3 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 843BF9211A3CFE20005FC6F3 /* UIKit.framework */; };
843BF94D1A3CFE21005FC6F3 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 843BF94B1A3CFE21005FC6F3 /* InfoPlist.strings */; };
843BF94F1A3CFE21005FC6F3 /* rudict_iosTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 843BF94E1A3CFE21005FC6F3 /* rudict_iosTests.m */; };
843BF9681A3CFFE6005FC6F3 /* adjective.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 843BF9591A3CFFE6005FC6F3 /* adjective.cpp */; };
843BF9691A3CFFE6005FC6F3 /* grammarCase.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 843BF95B1A3CFFE6005FC6F3 /* grammarCase.cpp */; };
843BF96B1A3CFFE6005FC6F3 /* noun.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 843BF95E1A3CFFE6005FC6F3 /* noun.cpp */; };
843BF96C1A3CFFE6005FC6F3 /* other.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 843BF9601A3CFFE6005FC6F3 /* other.cpp */; };
843BF96D1A3CFFE6005FC6F3 /* preposition.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 843BF9621A3CFFE6005FC6F3 /* preposition.cpp */; };
843BF96E1A3CFFE6005FC6F3 /* utf8utf16.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 843BF9641A3CFFE6005FC6F3 /* utf8utf16.cpp */; };
843BF96F1A3CFFE6005FC6F3 /* verb.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 843BF9661A3CFFE6005FC6F3 /* verb.cpp */; };
843BF9711A3D063D005FC6F3 /* libboost.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 843BF9701A3D063D005FC6F3 /* libboost.a */; };
843BF9741A3D0829005FC6F3 /* reporter.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 843BF9721A3D0829005FC6F3 /* reporter.cpp */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
843BF9461A3CFE21005FC6F3 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 843BF9121A3CFE20005FC6F3 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 843BF9191A3CFE20005FC6F3;
remoteInfo = "rudict-ios";
};
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
843BF91A1A3CFE20005FC6F3 /* rudict-ios.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "rudict-ios.app"; sourceTree = BUILT_PRODUCTS_DIR; };
843BF91D1A3CFE20005FC6F3 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
843BF91F1A3CFE20005FC6F3 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
843BF9211A3CFE20005FC6F3 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
843BF9251A3CFE20005FC6F3 /* rudict-ios-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "rudict-ios-Info.plist"; sourceTree = "<group>"; };
843BF9271A3CFE20005FC6F3 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
843BF9291A3CFE20005FC6F3 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
843BF92B1A3CFE20005FC6F3 /* rudict-ios-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "rudict-ios-Prefix.pch"; sourceTree = "<group>"; };
843BF92C1A3CFE20005FC6F3 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
843BF92D1A3CFE20005FC6F3 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
843BF9301A3CFE20005FC6F3 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main_iPhone.storyboard; sourceTree = "<group>"; };
843BF9331A3CFE20005FC6F3 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main_iPad.storyboard; sourceTree = "<group>"; };
843BF9351A3CFE20005FC6F3 /* FirstViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FirstViewController.h; sourceTree = "<group>"; };
843BF9361A3CFE20005FC6F3 /* FirstViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FirstViewController.m; sourceTree = "<group>"; };
843BF9381A3CFE20005FC6F3 /* SecondViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SecondViewController.h; sourceTree = "<group>"; };
843BF9391A3CFE20005FC6F3 /* SecondViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SecondViewController.m; sourceTree = "<group>"; };
843BF93B1A3CFE21005FC6F3 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
843BF9411A3CFE21005FC6F3 /* rudict-iosTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "rudict-iosTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
843BF9421A3CFE21005FC6F3 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; };
843BF94A1A3CFE21005FC6F3 /* rudict-iosTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "rudict-iosTests-Info.plist"; sourceTree = "<group>"; };
843BF94C1A3CFE21005FC6F3 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
843BF94E1A3CFE21005FC6F3 /* rudict_iosTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = rudict_iosTests.m; sourceTree = "<group>"; };
843BF9591A3CFFE6005FC6F3 /* adjective.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = adjective.cpp; path = "rudict-all/rudict/adjective.cpp"; sourceTree = SOURCE_ROOT; };
843BF95A1A3CFFE6005FC6F3 /* adjective.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = adjective.h; path = "rudict-all/rudict/adjective.h"; sourceTree = SOURCE_ROOT; };
843BF95B1A3CFFE6005FC6F3 /* grammarCase.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = grammarCase.cpp; path = "rudict-all/rudict/grammarCase.cpp"; sourceTree = SOURCE_ROOT; };
843BF95C1A3CFFE6005FC6F3 /* grammarCase.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = grammarCase.h; path = "rudict-all/rudict/grammarCase.h"; sourceTree = SOURCE_ROOT; };
843BF95E1A3CFFE6005FC6F3 /* noun.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = noun.cpp; path = "rudict-all/rudict/noun.cpp"; sourceTree = SOURCE_ROOT; };
843BF95F1A3CFFE6005FC6F3 /* noun.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = noun.h; path = "rudict-all/rudict/noun.h"; sourceTree = SOURCE_ROOT; };
843BF9601A3CFFE6005FC6F3 /* other.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = other.cpp; path = "rudict-all/rudict/other.cpp"; sourceTree = SOURCE_ROOT; };
843BF9611A3CFFE6005FC6F3 /* other.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = other.h; path = "rudict-all/rudict/other.h"; sourceTree = SOURCE_ROOT; };
843BF9621A3CFFE6005FC6F3 /* preposition.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = preposition.cpp; path = "rudict-all/rudict/preposition.cpp"; sourceTree = SOURCE_ROOT; };
843BF9631A3CFFE6005FC6F3 /* preposition.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = preposition.h; path = "rudict-all/rudict/preposition.h"; sourceTree = SOURCE_ROOT; };
843BF9641A3CFFE6005FC6F3 /* utf8utf16.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = utf8utf16.cpp; path = "rudict-all/rudict/utf8utf16.cpp"; sourceTree = SOURCE_ROOT; };
843BF9651A3CFFE6005FC6F3 /* utf8utf16.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = utf8utf16.h; path = "rudict-all/rudict/utf8utf16.h"; sourceTree = SOURCE_ROOT; };
843BF9661A3CFFE6005FC6F3 /* verb.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = verb.cpp; path = "rudict-all/rudict/verb.cpp"; sourceTree = SOURCE_ROOT; };
843BF9671A3CFFE6005FC6F3 /* verb.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = verb.h; path = "rudict-all/rudict/verb.h"; sourceTree = SOURCE_ROOT; };
843BF9701A3D063D005FC6F3 /* libboost.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libboost.a; path = "../../libs/boost_1_57_0/build-ios/ios-simulator/libboost.a"; sourceTree = "<group>"; };
843BF9721A3D0829005FC6F3 /* reporter.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = reporter.cpp; path = "rudict-all/rudict/reporter.cpp"; sourceTree = SOURCE_ROOT; };
843BF9731A3D0829005FC6F3 /* reporter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = reporter.h; path = "rudict-all/rudict/reporter.h"; sourceTree = SOURCE_ROOT; };
843BF9751A3D0A61005FC6F3 /* cpp-ios-stuff.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "cpp-ios-stuff.h"; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
843BF9171A3CFE20005FC6F3 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
843BF9711A3D063D005FC6F3 /* libboost.a in Frameworks */,
843BF9201A3CFE20005FC6F3 /* CoreGraphics.framework in Frameworks */,
843BF9221A3CFE20005FC6F3 /* UIKit.framework in Frameworks */,
843BF91E1A3CFE20005FC6F3 /* Foundation.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
843BF93E1A3CFE21005FC6F3 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
843BF9431A3CFE21005FC6F3 /* XCTest.framework in Frameworks */,
843BF9451A3CFE21005FC6F3 /* UIKit.framework in Frameworks */,
843BF9441A3CFE21005FC6F3 /* Foundation.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
843BF9111A3CFE20005FC6F3 = {
isa = PBXGroup;
children = (
843BF9231A3CFE20005FC6F3 /* rudict-ios */,
843BF9481A3CFE21005FC6F3 /* rudict-iosTests */,
843BF91C1A3CFE20005FC6F3 /* Frameworks */,
843BF91B1A3CFE20005FC6F3 /* Products */,
);
sourceTree = "<group>";
};
843BF91B1A3CFE20005FC6F3 /* Products */ = {
isa = PBXGroup;
children = (
843BF91A1A3CFE20005FC6F3 /* rudict-ios.app */,
843BF9411A3CFE21005FC6F3 /* rudict-iosTests.xctest */,
);
name = Products;
sourceTree = "<group>";
};
843BF91C1A3CFE20005FC6F3 /* Frameworks */ = {
isa = PBXGroup;
children = (
843BF9701A3D063D005FC6F3 /* libboost.a */,
843BF91D1A3CFE20005FC6F3 /* Foundation.framework */,
843BF91F1A3CFE20005FC6F3 /* CoreGraphics.framework */,
843BF9211A3CFE20005FC6F3 /* UIKit.framework */,
843BF9421A3CFE21005FC6F3 /* XCTest.framework */,
);
name = Frameworks;
sourceTree = "<group>";
};
843BF9231A3CFE20005FC6F3 /* rudict-ios */ = {
isa = PBXGroup;
children = (
843BF9581A3CFFBF005FC6F3 /* cpp */,
843BF92C1A3CFE20005FC6F3 /* AppDelegate.h */,
843BF92D1A3CFE20005FC6F3 /* AppDelegate.m */,
843BF92F1A3CFE20005FC6F3 /* Main_iPhone.storyboard */,
843BF9321A3CFE20005FC6F3 /* Main_iPad.storyboard */,
843BF9351A3CFE20005FC6F3 /* FirstViewController.h */,
843BF9361A3CFE20005FC6F3 /* FirstViewController.m */,
843BF9381A3CFE20005FC6F3 /* SecondViewController.h */,
843BF9391A3CFE20005FC6F3 /* SecondViewController.m */,
843BF93B1A3CFE21005FC6F3 /* Images.xcassets */,
843BF9241A3CFE20005FC6F3 /* Supporting Files */,
843BF9751A3D0A61005FC6F3 /* cpp-ios-stuff.h */,
);
path = "rudict-ios";
sourceTree = "<group>";
};
843BF9241A3CFE20005FC6F3 /* Supporting Files */ = {
isa = PBXGroup;
children = (
843BF9251A3CFE20005FC6F3 /* rudict-ios-Info.plist */,
843BF9261A3CFE20005FC6F3 /* InfoPlist.strings */,
843BF9291A3CFE20005FC6F3 /* main.m */,
843BF92B1A3CFE20005FC6F3 /* rudict-ios-Prefix.pch */,
);
name = "Supporting Files";
sourceTree = "<group>";
};
843BF9481A3CFE21005FC6F3 /* rudict-iosTests */ = {
isa = PBXGroup;
children = (
843BF94E1A3CFE21005FC6F3 /* rudict_iosTests.m */,
843BF9491A3CFE21005FC6F3 /* Supporting Files */,
);
path = "rudict-iosTests";
sourceTree = "<group>";
};
843BF9491A3CFE21005FC6F3 /* Supporting Files */ = {
isa = PBXGroup;
children = (
843BF94A1A3CFE21005FC6F3 /* rudict-iosTests-Info.plist */,
843BF94B1A3CFE21005FC6F3 /* InfoPlist.strings */,
);
name = "Supporting Files";
sourceTree = "<group>";
};
843BF9581A3CFFBF005FC6F3 /* cpp */ = {
isa = PBXGroup;
children = (
843BF9721A3D0829005FC6F3 /* reporter.cpp */,
843BF9731A3D0829005FC6F3 /* reporter.h */,
843BF9591A3CFFE6005FC6F3 /* adjective.cpp */,
843BF95A1A3CFFE6005FC6F3 /* adjective.h */,
843BF95B1A3CFFE6005FC6F3 /* grammarCase.cpp */,
843BF95C1A3CFFE6005FC6F3 /* grammarCase.h */,
843BF95E1A3CFFE6005FC6F3 /* noun.cpp */,
843BF95F1A3CFFE6005FC6F3 /* noun.h */,
843BF9601A3CFFE6005FC6F3 /* other.cpp */,
843BF9611A3CFFE6005FC6F3 /* other.h */,
843BF9621A3CFFE6005FC6F3 /* preposition.cpp */,
843BF9631A3CFFE6005FC6F3 /* preposition.h */,
843BF9641A3CFFE6005FC6F3 /* utf8utf16.cpp */,
843BF9651A3CFFE6005FC6F3 /* utf8utf16.h */,
843BF9661A3CFFE6005FC6F3 /* verb.cpp */,
843BF9671A3CFFE6005FC6F3 /* verb.h */,
);
name = cpp;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
843BF9191A3CFE20005FC6F3 /* rudict-ios */ = {
isa = PBXNativeTarget;
buildConfigurationList = 843BF9521A3CFE21005FC6F3 /* Build configuration list for PBXNativeTarget "rudict-ios" */;
buildPhases = (
843BF9161A3CFE20005FC6F3 /* Sources */,
843BF9171A3CFE20005FC6F3 /* Frameworks */,
843BF9181A3CFE20005FC6F3 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = "rudict-ios";
productName = "rudict-ios";
productReference = 843BF91A1A3CFE20005FC6F3 /* rudict-ios.app */;
productType = "com.apple.product-type.application";
};
843BF9401A3CFE21005FC6F3 /* rudict-iosTests */ = {
isa = PBXNativeTarget;
buildConfigurationList = 843BF9551A3CFE21005FC6F3 /* Build configuration list for PBXNativeTarget "rudict-iosTests" */;
buildPhases = (
843BF93D1A3CFE21005FC6F3 /* Sources */,
843BF93E1A3CFE21005FC6F3 /* Frameworks */,
843BF93F1A3CFE21005FC6F3 /* Resources */,
);
buildRules = (
);
dependencies = (
843BF9471A3CFE21005FC6F3 /* PBXTargetDependency */,
);
name = "rudict-iosTests";
productName = "rudict-iosTests";
productReference = 843BF9411A3CFE21005FC6F3 /* rudict-iosTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
843BF9121A3CFE20005FC6F3 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0510;
ORGANIZATIONNAME = Vladislav;
TargetAttributes = {
843BF9401A3CFE21005FC6F3 = {
TestTargetID = 843BF9191A3CFE20005FC6F3;
};
};
};
buildConfigurationList = 843BF9151A3CFE20005FC6F3 /* Build configuration list for PBXProject "rudict-ios" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 843BF9111A3CFE20005FC6F3;
productRefGroup = 843BF91B1A3CFE20005FC6F3 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
843BF9191A3CFE20005FC6F3 /* rudict-ios */,
843BF9401A3CFE21005FC6F3 /* rudict-iosTests */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
843BF9181A3CFE20005FC6F3 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
843BF9341A3CFE20005FC6F3 /* Main_iPad.storyboard in Resources */,
843BF93C1A3CFE21005FC6F3 /* Images.xcassets in Resources */,
843BF9311A3CFE20005FC6F3 /* Main_iPhone.storyboard in Resources */,
843BF9281A3CFE20005FC6F3 /* InfoPlist.strings in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
843BF93F1A3CFE21005FC6F3 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
843BF94D1A3CFE21005FC6F3 /* InfoPlist.strings in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
843BF9161A3CFE20005FC6F3 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
843BF9681A3CFFE6005FC6F3 /* adjective.cpp in Sources */,
843BF96B1A3CFFE6005FC6F3 /* noun.cpp in Sources */,
843BF9691A3CFFE6005FC6F3 /* grammarCase.cpp in Sources */,
843BF93A1A3CFE20005FC6F3 /* SecondViewController.m in Sources */,
843BF9741A3D0829005FC6F3 /* reporter.cpp in Sources */,
843BF92E1A3CFE20005FC6F3 /* AppDelegate.m in Sources */,
843BF9371A3CFE20005FC6F3 /* FirstViewController.m in Sources */,
843BF96C1A3CFFE6005FC6F3 /* other.cpp in Sources */,
843BF96F1A3CFFE6005FC6F3 /* verb.cpp in Sources */,
843BF96E1A3CFFE6005FC6F3 /* utf8utf16.cpp in Sources */,
843BF96D1A3CFFE6005FC6F3 /* preposition.cpp in Sources */,
843BF92A1A3CFE20005FC6F3 /* main.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
843BF93D1A3CFE21005FC6F3 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
843BF94F1A3CFE21005FC6F3 /* rudict_iosTests.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
843BF9471A3CFE21005FC6F3 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 843BF9191A3CFE20005FC6F3 /* rudict-ios */;
targetProxy = 843BF9461A3CFE21005FC6F3 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin PBXVariantGroup section */
843BF9261A3CFE20005FC6F3 /* InfoPlist.strings */ = {
isa = PBXVariantGroup;
children = (
843BF9271A3CFE20005FC6F3 /* en */,
);
name = InfoPlist.strings;
sourceTree = "<group>";
};
843BF92F1A3CFE20005FC6F3 /* Main_iPhone.storyboard */ = {
isa = PBXVariantGroup;
children = (
843BF9301A3CFE20005FC6F3 /* Base */,
);
name = Main_iPhone.storyboard;
sourceTree = "<group>";
};
843BF9321A3CFE20005FC6F3 /* Main_iPad.storyboard */ = {
isa = PBXVariantGroup;
children = (
843BF9331A3CFE20005FC6F3 /* Base */,
);
name = Main_iPad.storyboard;
sourceTree = "<group>";
};
843BF94B1A3CFE21005FC6F3 /* InfoPlist.strings */ = {
isa = PBXVariantGroup;
children = (
843BF94C1A3CFE21005FC6F3 /* en */,
);
name = InfoPlist.strings;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
843BF9501A3CFE21005FC6F3 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 7.1;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
843BF9511A3CFE21005FC6F3 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = YES;
ENABLE_NS_ASSERTIONS = NO;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 7.1;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
843BF9531A3CFE21005FC6F3 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "rudict-ios/rudict-ios-Prefix.pch";
HEADER_SEARCH_PATHS = (
"$(inherited)",
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
/Users/admin/Work/libs/boost_1_57_0,
);
INFOPLIST_FILE = "rudict-ios/rudict-ios-Info.plist";
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"/Users/admin/Work/libs/boost_1_57_0/build-ios/ios-simulator",
);
PRODUCT_NAME = "$(TARGET_NAME)";
WRAPPER_EXTENSION = app;
};
name = Debug;
};
843BF9541A3CFE21005FC6F3 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "rudict-ios/rudict-ios-Prefix.pch";
HEADER_SEARCH_PATHS = (
"$(inherited)",
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
/Users/admin/Work/libs/boost_1_57_0,
);
INFOPLIST_FILE = "rudict-ios/rudict-ios-Info.plist";
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"/Users/admin/Work/libs/boost_1_57_0/build-ios/ios-simulator",
);
PRODUCT_NAME = "$(TARGET_NAME)";
WRAPPER_EXTENSION = app;
};
name = Release;
};
843BF9561A3CFE21005FC6F3 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/rudict-ios.app/rudict-ios";
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
"$(inherited)",
"$(DEVELOPER_FRAMEWORKS_DIR)",
);
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "rudict-ios/rudict-ios-Prefix.pch";
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
INFOPLIST_FILE = "rudict-iosTests/rudict-iosTests-Info.plist";
PRODUCT_NAME = "$(TARGET_NAME)";
TEST_HOST = "$(BUNDLE_LOADER)";
WRAPPER_EXTENSION = xctest;
};
name = Debug;
};
843BF9571A3CFE21005FC6F3 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/rudict-ios.app/rudict-ios";
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
"$(inherited)",
"$(DEVELOPER_FRAMEWORKS_DIR)",
);
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "rudict-ios/rudict-ios-Prefix.pch";
INFOPLIST_FILE = "rudict-iosTests/rudict-iosTests-Info.plist";
PRODUCT_NAME = "$(TARGET_NAME)";
TEST_HOST = "$(BUNDLE_LOADER)";
WRAPPER_EXTENSION = xctest;
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
843BF9151A3CFE20005FC6F3 /* Build configuration list for PBXProject "rudict-ios" */ = {
isa = XCConfigurationList;
buildConfigurations = (
843BF9501A3CFE21005FC6F3 /* Debug */,
843BF9511A3CFE21005FC6F3 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
843BF9521A3CFE21005FC6F3 /* Build configuration list for PBXNativeTarget "rudict-ios" */ = {
isa = XCConfigurationList;
buildConfigurations = (
843BF9531A3CFE21005FC6F3 /* Debug */,
843BF9541A3CFE21005FC6F3 /* Release */,
);
defaultConfigurationIsVisible = 0;
};
843BF9551A3CFE21005FC6F3 /* Build configuration list for PBXNativeTarget "rudict-iosTests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
843BF9561A3CFE21005FC6F3 /* Debug */,
843BF9571A3CFE21005FC6F3 /* Release */,
);
defaultConfigurationIsVisible = 0;
};
/* End XCConfigurationList section */
};
rootObject = 843BF9121A3CFE20005FC6F3 /* Project object */;
}

View File

@ -0,0 +1,15 @@
//
// AppDelegate.h
// rudict-ios
//
// Created by Admin on 14.12.14.
// Copyright (c) 2014 Vladislav. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end

View File

@ -0,0 +1,46 @@
//
// AppDelegate.m
// rudict-ios
//
// Created by Admin on 14.12.14.
// Copyright (c) 2014 Vladislav. All rights reserved.
//
#import "AppDelegate.h"
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Override point for customization after application launch.
return YES;
}
- (void)applicationWillResignActive:(UIApplication *)application
{
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}
- (void)applicationDidEnterBackground:(UIApplication *)application
{
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}
- (void)applicationWillEnterForeground:(UIApplication *)application
{
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
}
- (void)applicationDidBecomeActive:(UIApplication *)application
{
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}
- (void)applicationWillTerminate:(UIApplication *)application
{
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
@end

View File

@ -0,0 +1,143 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="5023" systemVersion="13A603" targetRuntime="iOS.CocoaTouch.iPad" propertyAccessControl="none" useAutolayout="YES" initialViewController="49e-Tb-3d3">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3733"/>
</dependencies>
<scenes>
<!--class Prefix:identifier First View Controller - First-->
<scene sceneID="hNz-n2-bh7">
<objects>
<viewController id="9pv-A4-QxB" customClass="FirstViewController" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="Ia1-K6-d13"/>
<viewControllerLayoutGuide type="bottom" id="4ug-Mw-9AY"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="tsR-hK-woN">
<rect key="frame" x="0.0" y="0.0" width="768" height="1024"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" text="First View" textAlignment="center" lineBreakMode="tailTruncation" minimumFontSize="10" translatesAutoresizingMaskIntoConstraints="NO" id="KQZ-1w-vlD">
<rect key="frame" x="20" y="250" width="728" height="42"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<fontDescription key="fontDescription" name="Helvetica" family="Helvetica" pointSize="36"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
<textView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" userInteractionEnabled="NO" contentMode="scaleToFill" showsHorizontalScrollIndicator="NO" delaysContentTouches="NO" canCancelContentTouches="NO" minimumZoomScale="0.0" maximumZoomScale="0.0" bouncesZoom="NO" editable="NO" textAlignment="center" translatesAutoresizingMaskIntoConstraints="NO" id="A5M-7J-77L">
<rect key="frame" x="250" y="350" width="268" height="70"/>
<constraints>
<constraint firstAttribute="width" constant="268" id="d69-P2-Fm8"/>
<constraint firstAttribute="height" constant="70" id="inD-1n-nj2"/>
</constraints>
<string key="text">Loaded by the First View Controller — an instance of FirstViewController — specified in the app delegate.</string>
<fontDescription key="fontDescription" type="system" size="system"/>
<textInputTraits key="textInputTraits"/>
</textView>
<toolbar opaque="NO" clearsContextBeforeDrawing="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="iQr-d4-Ar2">
<rect key="frame" x="0.0" y="0.0" width="768" height="44"/>
<items/>
</toolbar>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="iQr-d4-Ar2" firstAttribute="top" secondItem="tsR-hK-woN" secondAttribute="top" id="8qp-4k-ywN"/>
<constraint firstItem="iQr-d4-Ar2" firstAttribute="leading" secondItem="tsR-hK-woN" secondAttribute="leading" id="9hT-Pl-9vo"/>
<constraint firstItem="iQr-d4-Ar2" firstAttribute="trailing" secondItem="tsR-hK-woN" secondAttribute="trailing" id="GCv-eZ-Lr1"/>
<constraint firstItem="KQZ-1w-vlD" firstAttribute="leading" secondItem="tsR-hK-woN" secondAttribute="leading" constant="20" symbolic="YES" id="SrW-vH-Wgg"/>
<constraint firstItem="KQZ-1w-vlD" firstAttribute="top" secondItem="tsR-hK-woN" secondAttribute="top" constant="250" id="VFC-dj-mBP"/>
<constraint firstItem="A5M-7J-77L" firstAttribute="top" secondItem="tsR-hK-woN" secondAttribute="top" constant="350" id="Zm2-cf-WrE"/>
<constraint firstItem="A5M-7J-77L" firstAttribute="centerX" secondItem="KQZ-1w-vlD" secondAttribute="centerX" id="e1l-AV-tCB"/>
<constraint firstAttribute="trailing" secondItem="KQZ-1w-vlD" secondAttribute="trailing" constant="20" symbolic="YES" id="iui-m3-cBD"/>
</constraints>
</view>
<tabBarItem key="tabBarItem" title="First" image="first" id="acW-dT-cKf"/>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="W5J-7L-Pyd" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="3041" y="150"/>
</scene>
<!--class Prefix:identifier Second View Controller - Second-->
<scene sceneID="wg7-f3-ORb">
<objects>
<viewController id="8rJ-Kc-sve" customClass="SecondViewController" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="L7p-HK-0SC"/>
<viewControllerLayoutGuide type="bottom" id="Djb-ko-YwX"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="QS5-Rx-YEW">
<rect key="frame" x="0.0" y="0.0" width="768" height="1024"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" text="Second View" textAlignment="center" lineBreakMode="tailTruncation" minimumFontSize="10" translatesAutoresizingMaskIntoConstraints="NO" id="zEq-FU-wV5">
<rect key="frame" x="20" y="250" width="728" height="42"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<fontDescription key="fontDescription" name="Helvetica" family="Helvetica" pointSize="36"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
<textView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" userInteractionEnabled="NO" contentMode="scaleToFill" showsHorizontalScrollIndicator="NO" delaysContentTouches="NO" canCancelContentTouches="NO" minimumZoomScale="0.0" maximumZoomScale="0.0" bouncesZoom="NO" editable="NO" textAlignment="center" translatesAutoresizingMaskIntoConstraints="NO" id="NDk-cv-Gan">
<rect key="frame" x="235" y="350" width="297" height="70"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstAttribute="width" constant="297" id="IyQ-6U-9uS"/>
<constraint firstAttribute="height" constant="70" id="OL4-RV-e9h"/>
</constraints>
<string key="text">Loaded by the Second View Controller — an instance of SecondViewController — specified in the app delegate.</string>
<fontDescription key="fontDescription" type="system" size="system"/>
<textInputTraits key="textInputTraits"/>
</textView>
<navigationBar opaque="NO" clearsContextBeforeDrawing="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ej5-n5-O85">
<rect key="frame" x="0.0" y="0.0" width="768" height="44"/>
<items>
<navigationItem id="WaP-O7-m87"/>
</items>
</navigationBar>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="zEq-FU-wV5" secondAttribute="trailing" constant="20" symbolic="YES" id="1Sm-Ed-d0Z"/>
<constraint firstItem="ej5-n5-O85" firstAttribute="trailing" secondItem="QS5-Rx-YEW" secondAttribute="trailing" id="C9p-N0-R4o"/>
<constraint firstItem="NDk-cv-Gan" firstAttribute="leading" secondItem="QS5-Rx-YEW" secondAttribute="leading" constant="235" id="ILQ-Iy-aLh"/>
<constraint firstItem="NDk-cv-Gan" firstAttribute="top" secondItem="QS5-Rx-YEW" secondAttribute="top" constant="350" id="WdQ-18-vtZ"/>
<constraint firstItem="zEq-FU-wV5" firstAttribute="top" secondItem="QS5-Rx-YEW" secondAttribute="top" constant="250" id="YLo-4G-u9r"/>
<constraint firstItem="ej5-n5-O85" firstAttribute="leading" secondItem="QS5-Rx-YEW" secondAttribute="leading" id="ZQW-8Y-bT4"/>
<constraint firstItem="ej5-n5-O85" firstAttribute="top" secondItem="QS5-Rx-YEW" secondAttribute="top" id="dYc-7R-70W"/>
<constraint firstItem="zEq-FU-wV5" firstAttribute="leading" secondItem="QS5-Rx-YEW" secondAttribute="leading" constant="20" symbolic="YES" id="uRE-52-21w"/>
</constraints>
</view>
<tabBarItem key="tabBarItem" title="Second" image="second" id="cPa-gy-q4n"/>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="4Nw-L8-lE0" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="3042" y="1284"/>
</scene>
<!--Tab Bar Controller-->
<scene sceneID="yl2-sM-qoP">
<objects>
<tabBarController id="49e-Tb-3d3" sceneMemberID="viewController">
<nil key="simulatedBottomBarMetrics"/>
<tabBar key="tabBar" contentMode="scaleToFill" id="W28-zg-YXA">
<rect key="frame" x="0.0" y="975" width="768" height="49"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
</tabBar>
<connections>
<segue destination="9pv-A4-QxB" kind="relationship" relationship="viewControllers" id="u7Y-xg-7CH"/>
<segue destination="8rJ-Kc-sve" kind="relationship" relationship="viewControllers" id="lzU-1b-eKA"/>
</connections>
</tabBarController>
<placeholder placeholderIdentifier="IBFirstResponder" id="HuB-VB-40B" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="2023" y="718"/>
</scene>
</scenes>
<resources>
<image name="first" width="16" height="16"/>
<image name="second" width="16" height="16"/>
</resources>
<simulatedMetricsContainer key="defaultSimulatedMetrics">
<simulatedStatusBarMetrics key="statusBar"/>
<simulatedOrientationMetrics key="orientation"/>
<simulatedScreenMetrics key="destination"/>
</simulatedMetricsContainer>
</document>

View File

@ -0,0 +1,115 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="5056" systemVersion="13D65" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="8YX-ce-x5E">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3733"/>
</dependencies>
<scenes>
<!--First View Controller - First-->
<scene sceneID="W3I-pn-N6e">
<objects>
<viewController title="First" id="CZ4-MO-1fc" customClass="FirstViewController" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="s9W-kb-ARv"/>
<viewControllerLayoutGuide type="bottom" id="dtj-EO-iXF"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="2VE-Yg-loa">
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="whr-ae-3Zq">
<rect key="frame" x="20" y="71" width="280" height="30"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
</textField>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Enter request:" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="BT3-7q-dHU">
<rect key="frame" x="20" y="42" width="280" height="21"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
<tableView clipsSubviews="YES" contentMode="scaleToFill" fixedFrame="YES" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="44" sectionHeaderHeight="22" sectionFooterHeight="22" translatesAutoresizingMaskIntoConstraints="NO" id="vb8-Tv-IrM">
<rect key="frame" x="0.0" y="176" width="320" height="392"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</tableView>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="cep-Fn-Ugf">
<rect key="frame" x="20" y="109" width="280" height="30"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<state key="normal" title="Find">
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
</state>
</button>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Enter request and tap Find" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ddZ-6d-haf">
<rect key="frame" x="20" y="147" width="280" height="21"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
</view>
<tabBarItem key="tabBarItem" title="First" image="first" id="u1e-5L-l1D"/>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="Qh2-T1-AhA" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="653" y="-138"/>
</scene>
<!--Second View Controller - Second-->
<scene sceneID="ot8-2e-RuS">
<objects>
<viewController title="Second" id="QUy-BD-bpt" customClass="SecondViewController" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="FgS-U6-xeU"/>
<viewControllerLayoutGuide type="bottom" id="stI-4g-hlJ"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="gMD-aP-Fq6">
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="This application is designed and created by:Vladislav KhorevLu Jing" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="6" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" preferredMaxLayoutWidth="280" translatesAutoresizingMaskIntoConstraints="NO" id="s0V-UY-lbl">
<rect key="frame" x="20" y="20" width="280" height="125"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
</view>
<tabBarItem key="tabBarItem" title="Second" image="second" id="Z7h-1E-pvt"/>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="3qq-4t-Ow8" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="653" y="498"/>
</scene>
<!--Tab Bar Controller-->
<scene sceneID="Vex-rW-GRa">
<objects>
<tabBarController id="8YX-ce-x5E" sceneMemberID="viewController">
<nil key="simulatedBottomBarMetrics"/>
<tabBar key="tabBar" contentMode="scaleToFill" id="JQR-rB-NYL">
<rect key="frame" x="0.0" y="431" width="320" height="49"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
</tabBar>
<connections>
<segue destination="CZ4-MO-1fc" kind="relationship" relationship="viewControllers" id="SUk-Ux-ee1"/>
<segue destination="QUy-BD-bpt" kind="relationship" relationship="viewControllers" id="M8t-EP-wfW"/>
</connections>
</tabBarController>
<placeholder placeholderIdentifier="IBFirstResponder" id="FNP-y4-bzi" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="132" y="180"/>
</scene>
</scenes>
<resources>
<image name="first" width="30" height="30"/>
<image name="second" width="30" height="30"/>
</resources>
<simulatedMetricsContainer key="defaultSimulatedMetrics">
<simulatedStatusBarMetrics key="statusBar"/>
<simulatedOrientationMetrics key="orientation"/>
<simulatedScreenMetrics key="destination" type="retina4"/>
</simulatedMetricsContainer>
</document>

View File

@ -0,0 +1,13 @@
//
// FirstViewController.h
// rudict-ios
//
// Created by Admin on 14.12.14.
// Copyright (c) 2014 Vladislav. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface FirstViewController : UIViewController
@end

View File

@ -0,0 +1,29 @@
//
// FirstViewController.m
// rudict-ios
//
// Created by Admin on 14.12.14.
// Copyright (c) 2014 Vladislav. All rights reserved.
//
#import "FirstViewController.h"
@interface FirstViewController ()
@end
@implementation FirstViewController
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end

View File

@ -0,0 +1,53 @@
{
"images" : [
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "29x29",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "29x29",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "40x40",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "40x40",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "76x76",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "76x76",
"scale" : "2x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

View File

@ -0,0 +1,51 @@
{
"images" : [
{
"orientation" : "portrait",
"idiom" : "iphone",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "iphone",
"subtype" : "retina4",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "ipad",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "1x"
},
{
"orientation" : "landscape",
"idiom" : "ipad",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "1x"
},
{
"orientation" : "portrait",
"idiom" : "ipad",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "2x"
},
{
"orientation" : "landscape",
"idiom" : "ipad",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "2x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

View File

@ -0,0 +1,18 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x",
"filename" : "first.png"
},
{
"idiom" : "universal",
"scale" : "2x",
"filename" : "first@2x.png"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 253 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 402 B

View File

@ -0,0 +1,18 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x",
"filename" : "second.png"
},
{
"idiom" : "universal",
"scale" : "2x",
"filename" : "second@2x.png"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 B

View File

@ -0,0 +1,13 @@
//
// SecondViewController.h
// rudict-ios
//
// Created by Admin on 14.12.14.
// Copyright (c) 2014 Vladislav. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface SecondViewController : UIViewController
@end

View File

@ -0,0 +1,29 @@
//
// SecondViewController.m
// rudict-ios
//
// Created by Admin on 14.12.14.
// Copyright (c) 2014 Vladislav. All rights reserved.
//
#import "SecondViewController.h"
@interface SecondViewController ()
@end
@implementation SecondViewController
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end

View File

@ -0,0 +1,17 @@
//
// cpp-ios-stuff.h
// rudict-ios
//
// Created by Admin on 14.12.14.
// Copyright (c) 2014 Vladislav. All rights reserved.
//
#ifndef rudict_ios_cpp_ios_stuff_h
#define rudict_ios_cpp_ios_stuff_h
//Function is implemented in file reporter.cpp
const char* CreateReportJsonUtf8(const char* crequest);
#endif

View File

@ -0,0 +1,2 @@
/* Localized versions of Info.plist keys */

18
rudict/rudict-ios/main.m Normal file
View File

@ -0,0 +1,18 @@
//
// main.m
// rudict-ios
//
// Created by Admin on 14.12.14.
// Copyright (c) 2014 Vladislav. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
int main(int argc, char * argv[])
{
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}

View File

@ -0,0 +1,59 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>fishrungames.${PRODUCT_NAME:rfc1034identifier}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIMainStoryboardFile</key>
<string>Main_iPhone</string>
<key>UIMainStoryboardFile~ipad</key>
<string>Main_iPad</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UIStatusBarTintParameters</key>
<dict>
<key>UINavigationBar</key>
<dict>
<key>Style</key>
<string>UIBarStyleDefault</string>
<key>Translucent</key>
<false/>
</dict>
</dict>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict>
</plist>

View File

@ -0,0 +1,16 @@
//
// Prefix header
//
// The contents of this file are implicitly included at the beginning of every source file.
//
#import <Availability.h>
#ifndef __IPHONE_5_0
#warning "This project uses features only available in iOS SDK 5.0 and later."
#endif
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#endif

View File

@ -0,0 +1,2 @@
/* Localized versions of Info.plist keys */

View File

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>fishrungames.${PRODUCT_NAME:rfc1034identifier}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>

View File

@ -0,0 +1,34 @@
//
// rudict_iosTests.m
// rudict-iosTests
//
// Created by Admin on 14.12.14.
// Copyright (c) 2014 Vladislav. All rights reserved.
//
#import <XCTest/XCTest.h>
@interface rudict_iosTests : XCTestCase
@end
@implementation rudict_iosTests
- (void)setUp
{
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
}
- (void)tearDown
{
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}
- (void)testExample
{
XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__);
}
@end