Package eu.svjatoslav.commons.string


package eu.svjatoslav.commons.string
Provides utility classes for string manipulation and pattern matching.

This package contains classes for advanced string operations:

  • String2 - A mutable string builder optimized for prefix/suffix operations, with fluent API for easy chaining
  • GlobMatcher - Match strings against wildcard patterns using * (any characters) and ? (single character)

The String2 class provides a more intuitive alternative to StringBuilder for operations involving prefixes and suffixes, with methods like trimPrefix(), trimSuffix(), prepend(), and appendWithSeparator().

The GlobMatcher implements glob-style pattern matching similar to shell wildcards, useful for file name filtering and simple pattern matching without regular expressions.

Since:
1.0
Author:
Svjatoslav Agejenko
See Also:
  • Classes
    Class
    Description
    Matches strings against glob-style wildcard patterns.
    A mutable string builder optimized for prefix and suffix operations.