Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site











SourceForge.net Logo

Utilities

 

String CsvString(const String& text)

Formats text for inclusion in CSV.

 


 

Vector<StringGetCsvLine(Stream& s, int separator, byte charset)

Parses a line from CSV input stream, using separator and converting from charset to application default charset.

 


 

String Replace(const String& s, const Vector<String>& find, const Vector<String>& replace)

String Replace(const String& s, const VectorMap<String, String>& fr)

WString Replace(const WString& s, const Vector<WString>& find, const Vector<WString>& replace)

WString Replace(const WString& s, const VectorMap<WString, WString>& fr)

Replaces multiple patterns with replace texts. When patterns and replaces are specified by VectorMap, keys are patterns. Text replaced is not searched for more instances of patterns. Longest pattern is always used (if patterns:replases are "hell":"hello" and "hello":"hell", then replacing within "hell hello" produces "hello hell").

 


 

String GetP7Signature(const void *data, int length, const String& cert_pem, const String& pkey_pem)

String GetP7Signature(const String& data, const String& cert_pem, const String& pkey_pem)

Computes P7S signature in binary format of data bytes. cert_pem (X509 public key) and pkey_pem (X509 private key) should be in PEM format. Requires Core/SSL. Returns signature in binary format (e.g. needs to be base64 encoded for SMIME emails). Returns Null in case of error.

 

Last edit by cxl on 10/21/2016. Do you want to contribute?. T++