KoreanChosungSearch - Android library for KoreanChosungSearch

Overview

KoreanChosungSearch


Android library for KoreanChosungSearch.
한글 초성 검색을 위한 안드로이드 라이브러리입니다.

Installation

build.gradle in Project

allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
}

build.gradle in Module

dependencies {
  implementation 'com.github.DeveloperJo:KoreanChosungSearch:1.0.1'
}

Usage

Method for Korean Chosung Search:
초성 검색 메소드
KCS.match(query,tocompare)

KCS.match() method takes two String variables.
It compares query variable with tocompare variable. It returns true if it matches , false otherwise.
For example, the following would return true.

KCS.match() 메소드는 두 String 변수를 인자로 받습니다.
query(검색어) 변수와 tocompare 변수를 서로 비교해 초성이 맞으면 true를, 다르면 false를 반환합니다.
예를 들어, 다음은 true를 반환합니다.

KCS.match("ㅍ도ㅁ","포도맛")

You can use it like this in Adapter's Filter.
AdapterFilter 에서 다음과 같이 사용할 수 있습니다.

...
for (item in itemList) {
    if(KCS.match(query,item)){
	resultList.add(item)
    }
}

example


And you can use following few methods if you need.
필요하다면 다음 몇개의 메소드를 사용할 수 있습니다.
초성 분리 메소드
KCS.getCho() // it returns "ㅎ" if it takes "하"

한 글자를 입력받아 초성을 분리해내 추출합니다. "하" 를 변수로 받으면, "ㅎ" 를 반환합니다.

중성 분리 메소드
KCS.getJoong() // it returns "ㅏ" if it takes "하"

한 글자를 입력받아 중성을 분리해내 추출합니다. "하" 를 변수로 받으면, "ㅏ" 를 반환합니다.

종성 분리 메소드
KCS.getJong() // it returns "ㄹ" if it takes "할"

한 글자를 입력받아 종성을 분리해내 추출합니다. "할" 을 변수로 받으면, "ㄹ" 을 반환합니다.

한글 검사 메소드
Method that checks it's Hangeul or not
KCS.isHangeul() // it returns 'true' if it takes one Hangeul char. 

한 글자의 Char 타입의 변수를 입력받아 한글이면 true를 , 아니면 false 를 반환합니다.
'사'를 변수로 받으면 true , 한글 이외의 문자를 변수로 받으면 false 를 반환합니다.

You might also like...
📱 Android Library to implement Rich, Beautiful, Stylish 😍 Material Navigation View for your project with Material Design Guidelines. Easy to use.
📱 Android Library to implement Rich, Beautiful, Stylish 😍 Material Navigation View for your project with Material Design Guidelines. Easy to use.

Material NavigationView for Android 📱 📱 Android Library to implement Rich, Beautiful Material Navigation View for your project with Material Design

Utility Android app for generating color palettes of images using the Palette library. Written in Kotlin.
Utility Android app for generating color palettes of images using the Palette library. Written in Kotlin.

Palette Helper is a simple utility app made to generate color palettes of images using Google's fantastic Palette library. It's mostly a for-fun pet p

📱 AppListManager (Android Library) makes managing application and activity lists easy.
📱 AppListManager (Android Library) makes managing application and activity lists easy.

AppListManager (Android Library) AppListManager is easy to use Android library, which minimizes developing time when working on application or activit

An library to help android developers working easly with activities and fragments (Kotlin version)
An library to help android developers working easly with activities and fragments (Kotlin version)

AFM An library to help android developer working easly with activities and fragments (Kotlin) Motivation Accelerate the process and abstract the logic

Sample Project for Android Support Library 23.2
Sample Project for Android Support Library 23.2

SnapShot: Contains features Vector Drawable Animated Vector Drawable AppCompat DayNight theme Bottom Sheets Using BottomSheetDialog in day-night mode.

RoboDemo is a ShowCase library for Android to demonstrate to users how a given Activity works.
RoboDemo is a ShowCase library for Android to demonstrate to users how a given Activity works.

RoboDemo RoboDemo is a ShowCase library for Android to demonstrate to users how a given Activity works. A sample is available in the download area of

Examples for my Android GraphView library

Chart and Graph Library for Android GraphView - open source graph plotting library for Android GraphView is a library for Android to programmatically

RxJava architecture library for Android
RxJava architecture library for Android

Reference Architecture for Android using RxJava This is an ambitious reference project of what can be done with RxJava to create an app based on strea

Android library for finding connected devices on same WiFi network. It can provide IP Address, device name, MAC Address and vendor names.
Android library for finding connected devices on same WiFi network. It can provide IP Address, device name, MAC Address and vendor names.

Android WiFi Tools Android library for finding connected devices on the same WiFi network. It can provide IP Addresses, device names, MAC Address and

Releases(1.0.1)
Owner
DeveloperJo
DeveloperJo
A music picker library for React Native. Provides access to the system's UI for selecting songs from the phone's music library.

Expo Music Picker A music picker library for React Native. Provides access to the system's UI for selecting songs from the phone's music library. Supp

Bartłomiej Klocek 60 Dec 29, 2022
:movie_camera: Movie discovery app showcasing Android best practices with Google's recommended architecture: MVVM + Repository + Offline support + Android Architecture Components + Paging library & Retrofit2.

Popular Movies Stage 1 + Stage 2 Discover the most popular and top rated movies playing. Movies data fetched using themoviedb.org API. ✨ Screenshots M

Yassin AJDI 189 Nov 26, 2022
Oratio Library for Android Studio helps you simplify your Android TTS codes

Oratio Oratio is a library for Android Studio. This library is useful to a number of developers who are currently making apps using android TTS(Text-T

Jacob Lim 1 Oct 28, 2021
Unity-Android-SDK-Plugins - Android SDK/Library/Plugins (aar) for Unity Developers

Unity Android SDK Plugins Unity Android SDK Plugins is an Open Source project th

NNK 1 Aug 14, 2022
Spantastic - an Android library that provides a simple and Kotlin fluent API for creating Android Spannable

Spantastic is an Android library that provides a simple and Kotlin fluent API for creating Android Spannable. This library wrappers SpannableStringBuilder and add methods to easily decorate the text with multiple spans.

Wellington Cabral da Silva 12 Nov 27, 2022
AndroidEssentials is an android library that creates helper functions for performing common tasks in Android

AndroidEssentials is an android library that creates helper functions for performing common tasks in Android such as managing preferences, managing files, showing alerts, showing toasts, checking user country & checking network connection of users. All the methods of the class are static and should be accessed directly from the AndroidEssentials class.

Isaac Sichangi 3 Jul 7, 2022
Utility Android app for generating color palettes of images using the Palette library. Written in Kotlin.

Palette Helper is a simple utility app made to generate color palettes of images using Google's fantastic Palette library. It's mostly a for-fun pet p

Zac Sweers 154 Nov 18, 2022
Android app built with MVP architectural approach and uses Marvel Comics API that allows developers everywhere to access information about Marvel's vast library of comics. :zap:

Villains & Heroes Android app built with MVP architectural approach and uses Marvel Comics API that allows developers everywhere to access information

André Mion 53 Jul 13, 2022
Library to change Android launcher App Icon and App Name programmatically !

AppIconNameChanger Change Android App launcher Icon and App Name programmatically ! Download Demo APK from HERE Kindly use the following links to use

Prabhakar Thota 587 Dec 29, 2022