Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added string utility functions to trim, filter and convert. #2322

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Removed valueToString() in favor of ci::toString().
paulhoux committed Jan 2, 2024
commit e1b537422acfd8c23ee1a14e7fde92a3deebe45e
20 changes: 0 additions & 20 deletions include/cinder/Utilities.h
Original file line number Diff line number Diff line change
@@ -155,26 +155,6 @@ CI_API bool isAlpha( char c );
//! returns whether character \a c is numeric (0-9)+(.+-eE). Not Unicode-aware.
CI_API bool isNumeric( char c );

//! converts the value to a string without leading and trailing zeroes.
CI_API std::string valueToString( int value );
//! converts the value to a string without leading and trailing zeroes.
CI_API std::string valueToString( unsigned value );
//! converts the value to a string without leading and trailing zeroes.
CI_API std::string valueToString( long value );
//! converts the value to a string without leading and trailing zeroes.
CI_API std::string valueToString( unsigned long value );
//! converts the value to a string without leading and trailing zeroes.
CI_API std::string valueToString( long long value );
//! converts the value to a string without leading and trailing zeroes.
CI_API std::string valueToString( unsigned long long value );
//! converts the value to a string without leading and trailing zeroes.
CI_API std::string valueToString( float value );
//! converts the value to a string without leading and trailing zeroes.
CI_API std::string valueToString( float value, int precision );
//! converts the value to a string without leading and trailing zeroes.
CI_API std::string valueToString( double value );
//! converts the value to a string without leading and trailing zeroes.
CI_API std::string valueToString( double value, int precision );

//! Returns a stack trace (aka backtrace) where \c stackTrace()[0] == caller, \c stackTrace()[1] == caller's parent, etc
CI_API std::vector<std::string> stackTrace();