Konloch   02-17-2023, 04:16 PM
#1
About: FastStringUtils is an easy-to-use zero dependency collection of very fast String utility functions for Java.
License: MIT License
Source: https://konloch.com/FastStringUtils/
Download Jar: https://konloch.com/FastStringUtils/releases/
Add as maven dependency:
Code:
<dependency>
  <groupId>com.konloch</groupId>
  <artifactId>FastStringUtils</artifactId>
  <version>1.0.0</version>
</dependency>

Splitting a String with a supplied separator
Code:
//split the string using the space character as a separator
String[] simpleSplitExample = FastStringUtils.split("Split Example", " ");

//split the string using the space character as a separator, with a maximum search limit of 2
String[] limiterSplitExample = FastStringUtils.split("Split Example With A Limit ", " ", 2);

//split the string using the space character as a separator, with a maximum search limit of 2, and preserve the separator
String[] limiterSplitExamplePreseveSeparator = FastStringUtils.split("Split Example With A Limit ", " ", 2, true);
This post was last modified: 03-04-2023, 06:22 AM by Konloch.
  
Users browsing this thread: 1 Guest(s)
Konloch Software - Bytecode Viewer - Reverse Engineering Forum
Copyright © 2014-2025 The Bytecode Club. Powered By MyBB.
CC0 Unless Specified Otherwise.