📚 English below
کتابخانهی PyStringLib مجموعهای از توابع مفید برای پردازش رشتههاست که در C++ نوشته شده و از رفتارهای پایتونی مثل slice, replace, find, count و ... پشتیبانی میکند.
هدف این پروژه ارائهی ابزاری ساده برای توسعهدهندگان C++ است که بتوانند با الهام از پایتون، کدنویسی راحتتری داشته باشند.
#include "PyString.h"
PyString py;
std::string text = "pouya";
std::cout << py.revers(text); // Output: "ayuoP"
std::cout << py.removeVowels(text); // Output: "py"
std::cout << py.slice(text, 1, 4, 1); // Output: "ouy"
std::cout << py.find(text, "uya"); // Output: 2git clone https://github.com/Pouyazadmehr83/PyStringLib.git
cd PyStringLib
g++ -Iinclude src/PyString.cpp examples/main.cpp -o pystring_demo
./pystring_demoاین پروژه تحت مجوز MIT منتشر شده است.
PyStringLib is a lightweight C++ library that brings some Python-like string functions into your C++ code, such as slice, replace, find, count, and more.
#include "PyString.h"
PyString py;
std::string text = "pouya";
std::cout << py.revers(text); // "ayuoP"
std::cout << py.removeVowels(text); // "py"
std::cout << py.slice(text, 1, 4, 1); // "ouy"
std::cout << py.find(text, "uya"); // 2git clone https://github.com/Pouyazadmehr83/PyStringLib.git
cd PyStringLib
g++ -Iinclude src/PyString.cpp examples/main.cpp -o pystring_demo
./pystring_demoThis project is licensed under the MIT License.