hoshi-lang dev
Yet another programming language
Loading...
Searching...
No Matches
string.cpp File Reference
#include <iostream>
#include <string>
#include <string_view>
#include <numeric>
#include <format>
Include dependency graph for string.cpp:

Go to the source code of this file.

Functions

std::string trim (const std::string &str)
 
size_t find_all (const std::string &str, const std::string &sub)
 
std::string replace_all (std::string str, const std::string &from, const std::string &to)
 
int main ()
 

Function Documentation

◆ find_all()

size_t find_all ( const std::string &  str,
const std::string &  sub 
)

Definition at line 21 of file string.cpp.

Referenced by main().

Here is the caller graph for this function:

◆ main()

int main ( )

Definition at line 49 of file string.cpp.

References find_all(), replace_all(), and trim().

Here is the call graph for this function:

◆ replace_all()

std::string replace_all ( std::string  str,
const std::string &  from,
const std::string &  to 
)

Definition at line 36 of file string.cpp.

Referenced by visitor::getSpecializedMangledMethodName(), and main().

Here is the caller graph for this function:

◆ trim()

std::string trim ( const std::string &  str)

Definition at line 9 of file string.cpp.

Referenced by main().

Here is the caller graph for this function: