osmanip
Library with useful output stream tools like: color and style manipulators, progress bars and terminal graphics.
Namespaces | Macros | Functions
strings.hpp File Reference
#include <stdint.h>
#include <string>
Include dependency graph for strings.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 osm
 

Macros

#define OSMANIP_UTILITY_STRINGS_HPP
 

Functions

std::string osm::get_formatted_from_ansi (const std::string &str, int32_t *last_pos, int32_t *last_size)
 Formats a string according to the ANSI (Control Sequence Introducer) escape sequences present within the string. Can be used in a loop with appending data by using optional arguments. More...
 
std::string osm::trim_string (std::string &str)
 
size_t osm::find_first_alpha (std::string_view str, size_t pos)
 Finds the index of the first alphabetic character in the str, starting from the given position. More...
 
std::string osm::get_ansi_csi_string (const std::string &str, size_t esc_pos)
 
int32_t osm::get_ansi_csi_number (const std::string &csi)
 
char osm::get_ansi_csi_code (const std::string &csi)
 
void osm::handle_csi (const std::string &csi_str, std::string &dst_str, int32_t *dst_crsr_pos)
 

Detailed Description

Author
Joel Thomas (joelt.nosp@m.homa.nosp@m.s.e@g.nosp@m.mail.nosp@m..com)
Date
2022-10-5

Macro Definition Documentation

◆ OSMANIP_UTILITY_STRINGS_HPP

#define OSMANIP_UTILITY_STRINGS_HPP