{"id":13776335,"url":"https://github.com/myevan/cppjosa","last_synced_at":"2025-12-25T03:45:05.264Z","repository":{"id":150689980,"uuid":"10115818","full_name":"myevan/cppjosa","owner":"myevan","description":"c++11 한글 조사 처리","archived":false,"fork":false,"pushed_at":"2015-10-06T17:18:52.000Z","size":163,"stargazers_count":23,"open_issues_count":0,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-02-14T05:33:58.941Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/myevan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-05-17T04:10:17.000Z","updated_at":"2024-02-14T05:33:58.942Z","dependencies_parsed_at":"2023-04-09T03:46:56.108Z","dependency_job_id":null,"html_url":"https://github.com/myevan/cppjosa","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myevan%2Fcppjosa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myevan%2Fcppjosa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myevan%2Fcppjosa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myevan%2Fcppjosa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/myevan","download_url":"https://codeload.github.com/myevan/cppjosa/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253551510,"owners_count":21926308,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T18:00:23.220Z","updated_at":"2025-12-25T03:45:05.256Z","avatar_url":"https://github.com/myevan.png","language":"C++","readme":"cppjosa\n=======\n\nc++11 기반 한글 조사 처리 입니다. Windows(VS2013, VS2015)와 OS X 에서 빌드 및 테스트 되었습니다.\n\n예제\n----\n\n#### 코드\n\n    #include \"myevan_korean.h\"\n\n    int main()\n    {\n        std::wstring dstText;\n        std::wstring srcText = System::Text::UTF8Encoding.GetString(\"아노아(은)는 자루(와)과 오리(을)를 칭송하고 절(으)로 들어갔습니다.\");\n        Myevan::Korean::ReplaceJosa(srcText, dstText);\n\n        std::vector\u003cchar\u003e buf;\n        puts(System::Text::UTF8Encoding.GetBytes(srcText, buf));\n        puts(System::Text::UTF8Encoding.GetBytes(dstText, buf));\n\n        return 0;\n    }\n\n#### 결과\n\n    아노아(은)는 자루(와)과 오리(을)를 칭송하고 절(으)로 들어갔습니다.\n    아노아는 자루와 오리를 칭송하고 절로 들어갔습니다.\n\n\n빌드\n----\n\n### Windows\n\nVisualStudio 로 WinTest 디렉토리의 WinTest.sln 을 오픈해 빌드합니다.\n\n\n### OS X / Linux\n\n    $ make\n    $ ./cppjosa.exe\n\n\n참고\n---\n\n#### 인코딩\n\n* VisualStudio 에서 utf8-without-bom 인코딩을 지원 하지 못해 utf8-bom 인코딩을 사용합니다.\n* c++11 new unicode literals \u003chttps://en.wikipedia.org/wiki/C%2B%2B11#New_string_literals\u003e\n* `#pragma execution_character_set( \"utf-8\" )` VS2008 Latest SP, VS2010 Latest SP, VS2013 (VS2012 미지원?!)\n* gcc utf8-bom 컴파일 옵션 \u003chttp://stackoverflow.com/questions/7899795/is-it-possible-to-get-gcc-to-compile-utf-8-with-bom-source-files\u003e\n\n#### 로케일\n\n* std::locale() 함수의 경우 Windows 에서 `ko_KR.UTF-8` 을 지원하지 않아 `Korean` 을 사용합니다.\n* utf8-unicode 변환 \u003chttp://includes.egloos.com/v/1504676\u003e\n* 윈도우-리눅스 `wchar_t` 공용 사용 \u003chttp://sjc333.egloos.com/3137637\u003e\n\n#### 프로젝트 \n\n* 비주얼 스튜디오 통합 프로젝트 \u003chttp://stackoverflow.com/questions/29515566/how-do-i-make-a-visual-studio-2015-c-project-compatible-with-visual-studio-201\u003e\n\n","funding_links":[],"categories":["Programming Languages"],"sub_categories":["C++"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyevan%2Fcppjosa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmyevan%2Fcppjosa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyevan%2Fcppjosa/lists"}