Skip to content

Im-Tae/HangulNumber

Repository files navigation

Hangul Number

Author License

숫자를 한글로 바꿔주는 라이브러리입니다.

ENGLISH

설치

Gradle

Project : build.gradle

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

Module : build.gradle

dependencies {
    implementation 'com.github.Im-Tae:HangulNumber:Version'
}

Maven

<repositories>
	<repository>
		<id>jitpack.io</id>
		<url>https://jitpack.io</url>
	</repository>
</repositories>
<dependency>
	<groupId>com.github.Im-Tae</groupId>
	<artifactId>Hangul_Number</artifactId>
	<version>Version</version>
</dependency>

사용

다음과 같이 사용하면 됩니다.
HangulNumber.numberToHangul("7234526")
HangulNumber.numberToHangul("7456653467", Spacing.TYPE)

지원하는 띄어쓰기의 종류는 다음과 같습니다.
  1. Spacing.NONE : 기본 값, 띄어쓰기가 없습니다.
  2. Spacing.SMALL : 작은 단위( 십, 백, 천 )의 띄어쓰기가 있습니다.
  3. Spacing.BIG : 큰 단위( 만, 억, 조, 경, 해, 자, 양 )의 띄어쓰기가 있습니다.
  4. Spacing.BOTH : 작은 단위, 큰 단위 모두 띄어쓰기가 있습니다.

지원하는 숫자의 범위

0 부터 10^33 - 1 ( 천 양 )까지 [0 ~ 99999999999999999999999999999999 ]

라이센스

Copyright 2020 Im-Tae (TaeGeon Lim)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http:https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.