MVN

com.github.jikyo : suji

Maven & Gradle

Sep 05, 2020
0 stars

Suji · Suji is a converter library from Japanese number notation to numerical value, and from numerical notation to Japanese Kansuji notation. Converter.values(src) to convert from Japanese number notation to numerical value: Japanese number notation can include Kansuji. The String "1つの価格が二兆30万五千十7円になります。" will be converted to two BigDecimal, 1 and 2000000005017. And also, 打率は三割二部五厘です。 will be a 0.325. The return value is a list of Suji Numeral objects. If the input string has no number notation, Suji returns a empty list. The Numeral object has three methods: value(), begin(), and end(): value(): a BigDecimal instance of a numerical value for the number notation. begin(): the begin index (int) of the found number notation at the input string. end(): the end index (int) of the found number notation. Converter.kansujis(src) to convert from numeric notation to Japanese Kansuji notation: The String 20兆30万五千十7円になります。 will be converted to the Kansuji string, 二十兆三十万五千十七. The boolean flag one is interpreted as whether to display the first character 一 or not. The output of Converter.kansujis('1000万', true) will be converted to 一千万, and the output of Converter.kansujis('1000万', false) will be converted to 千万. Note that kansujis does not support numerical notation after the decimal point. If the input string is 32.01, the output will 三十二, not 三十二割一厘. The return value is a list of Kansuji objects. If the input string has no number notation, Suji returns a empty list. The Kansuji object has three methods: value(), begin(), and end(): value(): a String instance of a Kansuji notation. begin(): the begin index (int) of the found number notation at the input string. end(): the end index (int) of the found number notation. Suji is a one-pass parser. That is, Suji parse a source text from the head to the end only once.

<dependency>
    <groupId>com.github.jikyo</groupId>
    <artifactId>suji</artifactId>
    <version>0.0.5</version>
</dependency>
Copy
pom.xml
Table Of Contents

Latest Version

Choose a version of com.github.jikyo : suji to add to Maven or Gradle - Latest Versions:

  • Latest Stable: 0.0.5

All Versions

Choose a version of com.github.jikyo : suji to add to Maven or Gradle - All Versions:

Version Vulnerabilities Updated
0.0.x
suji-0.0.5
suji-0.0.4
suji-0.0.3

How to add a dependency to Maven

Add the following com.github.jikyo : suji maven dependency to the pom.xml file with your favorite IDE (IntelliJ / Eclipse / Netbeans):

<dependency>
    <groupId>com.github.jikyo</groupId>
    <artifactId>suji</artifactId>
    <version>0.0.5</version>
</dependency>

How to add a dependency to Gradle

Gradle Groovy DSL: Add the following com.github.jikyo : suji gradle dependency to your build.gradle file:

implementation 'com.github.jikyo:suji:0.0.5'

Gradle Kotlin DSL: Add the following com.github.jikyo : suji gradle kotlin dependency to your build.gradle.kts file:

implementation("com.github.jikyo:suji:0.0.5")

How to add a dependency to SBT Scala

SBT Scala: Add the following com.github.jikyo : suji sbt scala dependency to your build.sbt file:

libraryDependencies += "com.github.jikyo" % "suji" % "0.0.5"