svvitch
digital signage player
svvitch Namespace Reference

ユーティリティ関数 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)

Detailed Description

ユーティリティ関数


Function Documentation

int svvitch::fileCount ( const Path &  path)

サブフォルダを含むファイル数を返します

Definition at line 118 of file Utils.cpp.

Here is the caller graph for this function:

string svvitch::findLastOfText ( const string &  src,
const string &  find 
)

srcの中の最後のfind以降の文字列を取得します

Definition at line 431 of file Utils.cpp.

string svvitch::formatJSON ( const string &  s)

JSON文字列生成

Definition at line 240 of file Utils.cpp.

Here is the caller graph for this function:

string svvitch::formatJSON ( const map< string, string > &  obj)

JSON文字列生成

Definition at line 264 of file Utils.cpp.

Here is the call graph for this function:

string svvitch::formatJSONArray ( const vector< string > &  list)

JSON配列文字列生成

Definition at line 272 of file Utils.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

string svvitch::join ( const vector< string > &  v,
const string &  c 
)

文字列結合

Definition at line 152 of file Utils.cpp.

Here is the caller graph for this function:

string svvitch::md5 ( const Path &  path)

ファイルのMD5シグネイチャを取得

Definition at line 138 of file Utils.cpp.

Here is the caller graph for this function:

void svvitch::parseJSON ( const string &  json,
map< string, string > &  map 
)

Definition at line 280 of file Utils.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void svvitch::parseJSONArray ( const string &  json,
vector< string > &  v 
)

Definition at line 380 of file Utils.cpp.

Here is the call graph for this function:

bool svvitch::parseMultiNumbers ( const string &  s,
int  min,
int  max,
vector< int > &  result 
)

複数数値記述文字列のパース

Definition at line 181 of file Utils.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

vector< int > svvitch::parseTimes ( const string &  timeText)

Definition at line 442 of file Utils.cpp.

Here is the caller graph for this function:

bool svvitch::readFile ( const string &  file,
LPVOID *  buf 
)

ファイルを読込んでバッファのポインタを返します。 バッファは呼出し側で解放すること。

Definition at line 36 of file Utils.cpp.

void svvitch::rebootWindows ( BOOL  shutdown = FALSE,
BOOL  force = FALSE 
)

Definition at line 465 of file Utils.cpp.

void svvitch::sjis_utf16 ( const string &  in,
wstring &  out 
)

SJIS>UTF-16に変換

Definition at line 82 of file Utils.cpp.

Here is the caller graph for this function:

void svvitch::sjis_utf8 ( const string &  in,
string &  out 
)

SJIS>UTF-8に変換

Definition at line 76 of file Utils.cpp.

Here is the call graph for this function:

void svvitch::split ( const string &  s,
char  c,
vector< string > &  v,
int  splits = 0 
)

文字列分割

Definition at line 161 of file Utils.cpp.

Here is the caller graph for this function:

string svvitch::trimQuotationMark ( const string &  s)

Definition at line 418 of file Utils.cpp.

Here is the caller graph for this function:

void svvitch::utf16_sjis ( const wstring &  wstr,
string &  out 
)

UTF16->SJISに変換

Definition at line 96 of file Utils.cpp.

Here is the caller graph for this function:

void svvitch::utf8_sjis ( const string &  str,
string &  out 
)

UTF-8->SJISに変換

Definition at line 110 of file Utils.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const string svvitch::version ( )

バージョン

Definition at line 32 of file Utils.cpp.

Here is the caller graph for this function:

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines