<ahref="../../d5/d3b/_global_8h.html">Go to the documentation of this file.</a><divclass="fragment"><divclass="line"><aname="l00001"></a><spanclass="lineno"> 1</span> <spanclass="comment">// MuldeR's Utilities for Qt</span></div><divclass="line"><aname="l00003"></a><spanclass="lineno"> 3</span> <spanclass="comment">// Copyright (C) 2004-2017 LoRd_MuldeR <MuldeR2@GMX.de></span></div><divclass="line"><aname="l00004"></a><spanclass="lineno"> 4</span> <spanclass="comment">//</span></div><divclass="line"><aname="l00005"></a><spanclass="lineno"> 5</span> <spanclass="comment">// This library is free software; you can redistribute it and/or</span></div><divclass="line"><aname="l00006"></a><spanclass="lineno"> 6</span> <spanclass="comment">// modify it under the terms of the GNU Lesser General Public</span></div><divclass="line"><aname="l00007"></a><spanclass="lineno"> 7</span> <spanclass="comment">// License as published by the Free Software Foundation; either</span></div><divclass="line"><aname="l00008"></a><spanclass="lineno"> 8</span> <spanclass="comment">// version 2.1 of the License, or (at your option) any later version.</span></div><divclass="line"><aname="l00009"></a><spanclass="lineno"> 9</span> <spanclass="comment">//</span></div><divclass="line"><aname="l00010"></a><spanclass="lineno"> 10</span> <spanclass="comment">// This library is distributed in the hope that it will be useful,</span></div><divclass="line"><aname="l00011"></a><spanclass="lineno"> 11</span> <spanclass="comment">// but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div><divclass="line"><aname="l00012"></a><spanclass="lineno"> 12</span> <spanclass="comment">// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span></div><divclass="line"><aname="l00013"></a><spanclass="lineno"> 13</span> <spanclass="comment">// Lesser General Public License for more details.</span></div><divclass="line"><aname="l00014"></a><spanclass="lineno"> 14</span> <spanclass="comment">//</span></div><divclass="line"><aname="l00015"></a><spanclass="lineno"> 15</span> <spanclass="comment">// You should have received a copy of the GNU Lesser General Public</span></div><divclass="line"><aname="l00016"></a><spanclass="lineno"> 16</span> <spanclass="comment">// License along with this library; if not, write to the Free Software</span></div><divclass="line"><aname="l00017"></a><spanclass="lineno"> 17</span> <spanclass="comment">// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA</span></div><divclass="line"><aname="l00018"></a><spanclass="lineno"> 18</span> <spanclass="comment">//</span></div><divclass="line"><aname="l00019"></a><spanclass="lineno"> 19</span> <spanclass="comment">// http://www.gnu.org/licenses/lgpl-2.1.txt</span></div><divclass="line"><aname="l00021"></a><spanclass="lineno"> 21</span> <spanclass="comment"></span></div><divclass="line"><aname="l00027"></a><spanclass="lineno"> 27</span> <spanclass="preprocessor">#pragma once</span></div><divclass="line"><aname="l00028"></a><spanclass="lineno"> 28</span> </div><divclass="line"><aname="l00029"></a><spanclass="lineno"> 29</span> <spanclass="preprocessor">#include <QString></span></div><divclass="line"><aname="l00030"></a><spanclass="lineno"> 30</span> </div><divclass="line"><aname="l00031"></a><spanclass="lineno"> 31</span> <spanclass="comment">//Forward Declarations</span></div><divclass="line"><aname="l00032"></a><spanclass="lineno"> 32</span> <spanclass="keyword">class </span>QProcess;</div><divclass="line"><aname="l00033"></a><spanclass="lineno"> 33</span> </div><divclass="line"><aname="l00035"></a><spanclass="lineno"> 35</span> </div><divclass="line"><aname="l00039"></a><spanclass="lineno"> 39</span> <spanclass="comment">//MUtil
<divclass="ttc"id="namespace_m_utils_html_ac583617546d5ae100ce7436546d9662c"><divclass="ttname"><ahref="../../d3/da6/namespace_m_utils.html#ac583617546d5ae100ce7436546d9662c">MUtils::next_rand_str</a></div><divclass="ttdeci">MUTILS_API QString next_rand_str(const bool &bLong=false)</div><divclass="ttdoc">Generates a random string. </div></div>
<divclass="ttc"id="namespace_m_utils_html_a5a14e75627eebd09efc37898d74c5ac6"><divclass="ttname"><ahref="../../d3/da6/namespace_m_utils.html#a5a14e75627eebd09efc37898d74c5ac6">MUtils::remove_file</a></div><divclass="ttdeci">MUTILS_API bool remove_file(const QString &fileName)</div><divclass="ttdoc">Deletes the specified file. </div></div>
<divclass="ttc"id="namespace_m_utils_html_a4d4c545ea06892f6487f15a48808564f"><divclass="ttname"><ahref="../../d3/da6/namespace_m_utils.html#a4d4c545ea06892f6487f15a48808564f">MUtils::natural_string_sort</a></div><divclass="ttdeci">MUTILS_API void natural_string_sort(QStringList &list, const bool bIgnoreCase)</div><divclass="ttdoc">Sort a list of strings using "natural ordering" algorithm. </div></div>
<divclass="ttc"id="namespace_m_utils_html_aea4a212153b09b24b04f30ef5159f29b"><divclass="ttname"><ahref="../../d3/da6/namespace_m_utils.html#aea4a212153b09b24b04f30ef5159f29b">MUtils::parity</a></div><divclass="ttdeci">MUTILS_API bool parity(quint32 value)</div><divclass="ttdoc">Computes the parity of the given unsigned 32-Bit value. </div></div>
<divclass="ttc"id="namespace_m_utils_html_ad7edd4aece64faf3aa16c9509243608c"><divclass="ttname"><ahref="../../d3/da6/namespace_m_utils.html#ad7edd4aece64faf3aa16c9509243608c">MUtils::next_rand_u64</a></div><divclass="ttdeci">MUTILS_API quint64 next_rand_u64(void)</div><divclass="ttdoc">Generates a random unsigned 64-Bit value. </div></div>
<divclass="ttc"id="namespace_m_utils_html_a0ecb5d72f33a7b6feadd7deb8ed46cc3"><divclass="ttname"><ahref="../../d3/da6/namespace_m_utils.html#a0ecb5d72f33a7b6feadd7deb8ed46cc3">MUtils::init_process</a></div><divclass="ttdeci">MUTILS_API void init_process(QProcess &process, const QString &wokringDir, const bool bReplaceTempDir=true, const QStringList *const extraPaths=NULL)</div><divclass="ttdoc">Initialize a given QProcess object. </div></div>
<divclass="ttc"id="namespace_m_utils_html_a6118cf23d2b771fae1ad159c7ea6686a"><divclass="ttname"><ahref="../../d3/da6/namespace_m_utils.html#a6118cf23d2b771fae1ad159c7ea6686a">MUtils::trim_right</a></div><divclass="ttdeci">MUTILS_API QString & trim_right(QString &str)</div><divclass="ttdoc">Remove trailing white-space characters. </div></div>
<divclass="ttc"id="namespace_m_utils_html_a3f198156e8be91f3e74dd9ed69ffaa34"><divclass="ttname"><ahref="../../d3/da6/namespace_m_utils.html#a3f198156e8be91f3e74dd9ed69ffaa34">MUtils::temp_folder</a></div><divclass="ttdeci">MUTILS_API const QString & temp_folder(void)</div><divclass="ttdoc">Rerieves the full path of the application&#39;s Temp folder. </div></div>
<divclass="ttc"id="namespace_m_utils_html_aeb7783b8ecbe163501ce60dce8b6709f"><divclass="ttname"><ahref="../../d3/da6/namespace_m_utils.html#aeb7783b8ecbe163501ce60dce8b6709f">MUtils::clean_file_name</a></div><divclass="ttdeci">MUTILS_API QString clean_file_name(const QString &name, const bool &pretty)</div><divclass="ttdoc">Clean up a file name string. </div></div>
<divclass="ttc"id="namespace_m_utils_html_a1c9832c1d645a2c90e9bd52d57d843b3"><divclass="ttname"><ahref="../../d3/da6/namespace_m_utils.html#a1c9832c1d645a2c90e9bd52d57d843b3">MUtils::next_rand_u32</a></div><divclass="ttdeci">MUTILS_API quint32 next_rand_u32(void)</div><divclass="ttdoc">Generates a random unsigned 32-Bit value. </div></div>
<divclass="ttc"id="namespace_m_utils_html_a20b8fc56856ee904caaded756399e705"><divclass="ttname"><ahref="../../d3/da6/namespace_m_utils.html#a20b8fc56856ee904caaded756399e705">MUtils::trim_left</a></div><divclass="ttdeci">MUTILS_API QString & trim_left(QString &str)</div><divclass="ttdoc">Remove leading white-space characters. </div></div>