brace-expansion

Brace expansion from Bash/shell in Java.

Лицензия

Лицензия

Группа

Группа

me.andrz
Идентификатор

Идентификатор

brace-expansion
Последняя версия

Последняя версия

1.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

brace-expansion
Brace expansion from Bash/shell in Java.
Система контроля версий

Система контроля версий

https://github.com/adjohnson916/brace-expansion-java

Скачать brace-expansion

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/me.andrz/brace-expansion/ -->
<dependency>
    <groupId>me.andrz</groupId>
    <artifactId>brace-expansion</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/me.andrz/brace-expansion/
implementation 'me.andrz:brace-expansion:1.0.0'
// https://jarcasting.com/artifacts/me.andrz/brace-expansion/
implementation ("me.andrz:brace-expansion:1.0.0")
'me.andrz:brace-expansion:jar:1.0.0'
<dependency org="me.andrz" name="brace-expansion" rev="1.0.0">
  <artifact name="brace-expansion" type="jar" />
</dependency>
@Grapes(
@Grab(group='me.andrz', module='brace-expansion', version='1.0.0')
)
libraryDependencies += "me.andrz" % "brace-expansion" % "1.0.0"
[me.andrz/brace-expansion "1.0.0"]

Зависимости

compile (3)

Идентификатор библиотеки Тип Версия
org.antlr : antlr4-runtime jar 4.0
org.slf4j : slf4j-api jar 1.7.2
ch.qos.logback : logback-classic jar 1.0.9

test (2)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.10
org.hamcrest : hamcrest-all jar 1.3

Модули Проекта

Данный проект не имеет модулей.

brace-expansion

Build Status Download

Brace expansion from Bash/shell in Java.

Features

  • Brace nesting.
  • Ranges
    • Both integers and characters, including Unicode.
    • Increment ascending or descending.
    • Optional explicit increment step values, positive or negative.

TODO

  • Zero padded number expansion.

Use

For example:

import me.andrz.brace.BraceExpansion;
// ...
List<String> strs = BraceExpansion.expand("pic{{,s},ture{,s}}-{0..2}.{jpg,png}");

generates this list of strings:

pic-0.jpg
pics-0.jpg
picture-0.jpg
pictures-0.jpg
pic-1.jpg
pics-1.jpg
picture-1.jpg
pictures-1.jpg
pic-2.jpg
pics-2.jpg
picture-2.jpg
pictures-2.jpg
pic-0.png
pics-0.png
picture-0.png
pictures-0.png
pic-1.png
pics-1.png
picture-1.png
pictures-1.png
pic-2.png
pics-2.png
picture-2.png
pictures-2.png

This project provides an ANTLR 4 grammar, BraceExpansion.g4.

Install

Maven

<dependencies>
    <dependency>
        <groupId>me.andrz</groupId>
        <artifactId>brace-expansion</artifactId>
        <version>1.0.0</version>
    </dependency>
</dependencies>

Gradle

repositories {
    mavenCentral()
}

dependencies {
    compile 'me.andrz:brace-expansion:1.0.0'
}

Manual

Download JAR from Maven Central.

References

Alternatives

Версии библиотеки

Версия
1.0.0