|
svvitch
digital signage player
|
ユーティリティ関数 More...
Functions | |
| const string | version () |
| バージョン | |
| bool | readFile (const string &file, LPVOID *buf) |
| ファイルを読込んでバッファのポインタを返します。 バッファは呼出し側で解放すること。 | |
| void | sjis_utf8 (const string &in, string &out) |
| SJIS>UTF-8に変換 | |
| void | sjis_utf16 (const string &in, wstring &out) |
| SJIS>UTF-16に変換 | |
| void | utf16_sjis (const wstring &wstr, string &out) |
| UTF16->SJISに変換 | |
| void | utf8_sjis (const string &str, string &out) |
| UTF-8->SJISに変換 | |
| int | fileCount (const Path &path) |
| サブフォルダを含むファイル数を返します | |
| string | md5 (const Path &path) |
| ファイルのMD5シグネイチャを取得 | |
| string | join (const vector< string > &v, const string &c) |
| 文字列結合 | |
| void | split (const string &s, char c, vector< string > &v, int splits=0) |
| 文字列分割 | |
| bool | parseMultiNumbers (const string &s, int min, int max, vector< int > &result) |
| 複数数値記述文字列のパース | |
| string | formatJSON (const string &s) |
| JSON文字列生成 | |
| string | formatJSON (const map< string, string > &obj) |
| JSON文字列生成 | |
| string | formatJSONArray (const vector< string > &list) |
| JSON配列文字列生成 | |
| string | trimQuotationMark (const string &s) |
| void | parseJSON (const string &json, map< string, string > &map) |
| void | parseJSONArray (const string &json, vector< string > &v) |
| string | findLastOfText (const string &src, const string &find) |
| srcの中の最後のfind以降の文字列を取得します | |
| vector< int > | parseTimes (const string &timeText) |
| void | rebootWindows (BOOL shutdown=FALSE, BOOL force=FALSE) |
ユーティリティ関数
| int svvitch::fileCount | ( | const Path & | path | ) |
| string svvitch::findLastOfText | ( | const string & | src, |
| const string & | find | ||
| ) |
| string svvitch::formatJSON | ( | const string & | s | ) |
| string svvitch::formatJSON | ( | const map< string, string > & | obj | ) |
| string svvitch::formatJSONArray | ( | const vector< string > & | list | ) |
| string svvitch::join | ( | const vector< string > & | v, |
| const string & | c | ||
| ) |
| string svvitch::md5 | ( | const Path & | path | ) |
| void svvitch::parseJSON | ( | const string & | json, |
| map< string, string > & | map | ||
| ) |
| void svvitch::parseJSONArray | ( | const string & | json, |
| vector< string > & | v | ||
| ) |
| bool svvitch::parseMultiNumbers | ( | const string & | s, |
| int | min, | ||
| int | max, | ||
| vector< int > & | result | ||
| ) |
| vector< int > svvitch::parseTimes | ( | const string & | timeText | ) |
| bool svvitch::readFile | ( | const string & | file, |
| LPVOID * | buf | ||
| ) |
| void svvitch::rebootWindows | ( | BOOL | shutdown = FALSE, |
| BOOL | force = FALSE |
||
| ) |
| void svvitch::sjis_utf16 | ( | const string & | in, |
| wstring & | out | ||
| ) |
| void svvitch::sjis_utf8 | ( | const string & | in, |
| string & | out | ||
| ) |
| void svvitch::split | ( | const string & | s, |
| char | c, | ||
| vector< string > & | v, | ||
| int | splits = 0 |
||
| ) |
| string svvitch::trimQuotationMark | ( | const string & | s | ) |
| void svvitch::utf16_sjis | ( | const wstring & | wstr, |
| string & | out | ||
| ) |
| void svvitch::utf8_sjis | ( | const string & | str, |
| string & | out | ||
| ) |
| const string svvitch::version | ( | ) |