Skip to content

triploit/tstring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Triploit C++ String Library

Makes some things realy easy.

tri::string s = 'H';

std::cout << s << std::endl;

s = s + "ello world";
s += '!';

std::cout << s << std::endl;

s = s.replace("Hello", "Good night,");

std::cout << s << std::endl;
std::cout << s.toUpper().split(',')[0]+"!" << std::endl;

if (s.equalsIgnoreCase("good night, world!"))
    std::cout << "ok" << std::endl;

std::cout << s << std::endl;

if (s.endsWith("world!") && s.startsWith("Good"))
    std::cout << "Good world!" << std::endl;

Output:

H
Hello world!
Good night, world!
GOOD NIGHT!
ok
Good night, world!
Good world!

About

Triploit string library for c++.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published