All Projects → mebens → strong

mebens / strong

Licence: Zlib license
A Lua library that makes your strings stronger!

Programming Languages

lua
6591 projects

Projects that are alternatives of or similar to strong

Z.js
🦄 Hide text via Unicode's ZW(N)Js
Stars: ✭ 161 (+159.68%)
Mutual labels:  string-manipulation
Stringi
THE String Processing Package for R (with ICU)
Stars: ✭ 204 (+229.03%)
Mutual labels:  string-manipulation
lua-lpugl
A minimal Lua-API for building GUIs using Cairo or OpenGL (see: https://github.com/osch/lua-lpugl#lpugl)
Stars: ✭ 19 (-69.35%)
Mutual labels:  lua-library
Interviewbit
Collection of Abhishek Agrawal's gists solutions for problems on https://www.interviewbit.com
Stars: ✭ 166 (+167.74%)
Mutual labels:  string-manipulation
Str
A fast, solid and strong typed string manipulation library with multibyte support
Stars: ✭ 199 (+220.97%)
Mutual labels:  string-manipulation
Text
An efficient packed, immutable Unicode text type for Haskell, with a powerful loop fusion optimization framework.
Stars: ✭ 248 (+300%)
Mutual labels:  string-manipulation
Snippets
(Hopefully) useful code snippets and header-only libs
Stars: ✭ 123 (+98.39%)
Mutual labels:  string-manipulation
LuaCSP
Communicating Sequential Processes in Lua
Stars: ✭ 40 (-35.48%)
Mutual labels:  lua-library
Util
A collection of useful utility functions
Stars: ✭ 201 (+224.19%)
Mutual labels:  string-manipulation
blynk-library-lua
Blynk library for Lua. Works with Lua 5.1+, LuaJIT, NodeMCU.
Stars: ✭ 35 (-43.55%)
Mutual labels:  lua-library
Voca rs
Voca_rs is the ultimate Rust string library inspired by Voca.js, string.py and Inflector, implemented as independent functions and on Foreign Types (String and str).
Stars: ✭ 167 (+169.35%)
Mutual labels:  string-manipulation
Stringz
💯 Super fast unicode-aware string manipulation Javascript library
Stars: ✭ 181 (+191.94%)
Mutual labels:  string-manipulation
QGame
用于快速开发的跨平台高性能Lua游戏库(A Cross-platform high performance Lua game library for rapid development)
Stars: ✭ 17 (-72.58%)
Mutual labels:  lua-library
Androidlibrary
Android library to reveal or obfuscate strings and assets at runtime
Stars: ✭ 162 (+161.29%)
Mutual labels:  string-manipulation
PICO-EC
A tiny scene-entity-component library created for the PICO-8 fantasty console.
Stars: ✭ 37 (-40.32%)
Mutual labels:  lua-library
Str
str: yet another string library for C language.
Stars: ✭ 159 (+156.45%)
Mutual labels:  string-manipulation
Superstring.py
A fast and memory-optimized string library for heavy-text manipulation in Python
Stars: ✭ 231 (+272.58%)
Mutual labels:  string-manipulation
r4strings
Handling Strings in R
Stars: ✭ 39 (-37.1%)
Mutual labels:  string-manipulation
u-test
Sane and simple unit testing framework for Lua
Stars: ✭ 60 (-3.23%)
Mutual labels:  lua-library
batteries
Reusable dependencies for games made with lua (especially with love)
Stars: ✭ 194 (+212.9%)
Mutual labels:  lua-library

Description

Strong is a small Lua library that adds a lot of utilities to Lua's string library, and also adds some operators to strings themselves. It is currently at version 1.0.4.

Strong is based largely on Ruby's String class. I've also taken a few things from thelinx's extensions to strings.

The Name

As you might have guessed, the name "strong" was chosen because it's very close to "string", and because this library makes strings stronger :).

Features/Documentation

To get an idea of, or documentation for, strong's features, take a look at the wiki. Over there you can find the function reference, and documentation for string indexing and the operators.

Example

A quick example of a few of the features.

s = "Hello world.\nBoo. This is cool.\nHey!"

for line in s:lines() do
  for _, s in pairs(line / ' ')
    print(s:capitalize())
  end
end

Tests

The tests are done using telescope. Have a look at the README for that repository to see how to install telescope. Once you've done that, just run tsc spec.lua. Of course if you want to see the results of every test, you can run tsc -f spec.lua.

Contributors

  • Robin Wellner helped to improve performance of insert and also added a couple new abilities to that method.
  • kikito provided a much better implementation of squeeze.
  • TsT helped to improve and fix the split function and added the modulo operator.
  • Roland Yonaba provided the solution to a problem with a couple special pattern characters.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].