#include <Tools.h>
Static Public Member Functions | |
static std::string | addNumber (const std::string &, unsigned int, int d=0) |
static std::string | escapedUnicodeFromUtf8 (const char *s) |
static std::string | escapedUnicodeToUtf8 (const std::string &s) |
static QString | escapeEncodeFilename (const QString &s) |
static std::string | escapeEncodeFilename (const std::string &s) |
static QString | escapeEncodeString (const QString &s) |
static std::string | escapeEncodeString (const std::string &s) |
static QString | fromStdString (const std::string &s) |
fromStdString Convert a std::string encoded as UTF-8 into a QString. More... | |
static std::string | getIdentifier (const std::string &) |
static std::string | getUniqueName (const std::string &, const std::vector< std::string > &, int d=0) |
static std::string | narrow (const std::wstring &str) |
static std::string | toStdString (const QString &s) |
toStdString Convert a QString into a UTF-8 encoded std::string. More... | |
static std::wstring | widen (const std::string &str) |
|
static |
Referenced by PartGui::Mirroring::accept(), SpreadsheetGui::PropertiesDialog::apply(), Gui::Application::exportTo(), Gui::ExpressionBinding::getEscapedExpressionString(), App::SubObjectT::getSubObjectPython(), Gui::Application::importFrom(), Gui::Dialog::DlgPropertyLink::linksToPython(), StartGui::Workbench::loadStartPage(), SketcherGui::TaskSketcherConstraints::on_listWidgetConstraints_itemChanged(), Gui::Application::open(), App::Application::processFiles(), Gui::Document::saveAs(), MeshCore::MeshOutput::SaveOBJ(), Gui::PropertyEditor::PropertyEnumItem::setValue(), SketcherGui::ConstraintView::swapNamedOfSelectedItems(), and App::ObjectIdentifier::toEscapedString().
|
static |
Referenced by MeshCore::MeshInput::LoadMTL(), and MeshCore::MeshInput::LoadOBJ().
|
static |
Referenced by TechDrawGui::TaskActiveView::createActiveView(), Gui::Application::exportTo(), Gui::Application::importFrom(), Gui::Application::open(), App::Application::processCmdLineFiles(), App::Application::processFiles(), Gui::Document::saveAs(), Gui::Document::saveCopy(), TechDrawGui::MDIViewPage::saveDXF(), and WebGui::BrowserView::urlFilter().
|
static |
|
static |
|
static |
|
static |
fromStdString Convert a std::string encoded as UTF-8 into a QString.
s | std::string, expected to be UTF-8 encoded. |
Referenced by StdCmdDelete::activated(), SpreadsheetGui::SheetModel::data(), ConstraintItem::data(), Gui::Dialog::DlgExpressionInput::DlgExpressionInput(), TechDrawGui::QGIWeldSymbol::drawTailText(), Gui::QuantitySpinBox::event(), SketcherGui::EditDatumDialog::exec(), TechDraw::DrawSVGTemplate::execute(), TechDrawGui::TaskSectionView::failNoObject(), TechDraw::DrawViewDimension::getDefaultFormatSpec(), MRichTextEdit::getDefFont(), Spreadsheet::Cell::getFormattedQuantity(), TechDrawGui::TaskLineDecor::initUi(), TechDrawGui::DlgPrefsTechDrawDimensionsImp::loadSettings(), SpreadsheetGui::PropertiesDialog::PropertiesDialog(), Gui::ExpLineEdit::resizeEvent(), TechDrawGui::QGITile::setFont(), TechDrawGui::TaskHatch::setUiEdit(), TechDrawGui::TaskSectionView::setUiEdit(), TechDrawGui::TaskCenterLine::setUiEdit(), TechDrawGui::TaskCustomizeFormat::setUiEdit(), TechDrawGui::TaskLeaderLine::setUiEdit(), TechDrawGui::TaskRichAnno::setUiEdit(), TechDrawGui::TaskDetail::setUiFromFeat(), TechDrawGui::TaskHatch::setUiPrimary(), TechDrawGui::TaskSectionView::setUiPrimary(), TechDrawGui::TaskCenterLine::setUiPrimary(), TechDrawGui::TaskCosVertex::setUiPrimary(), TechDrawGui::TaskLeaderLine::setUiPrimary(), TechDrawGui::TaskRichAnno::setUiPrimary(), SpreadsheetGui::SheetModel::SheetModel(), Gui::ExpressionSpinBox::showValidExpression(), Gui::ExpressionCompleter::slotUpdate(), and FemGui::TaskFemConstraintFluidBoundary::TaskFemConstraintFluidBoundary().
|
static |
|
static |
References Base::string_comp::increment().
Referenced by App::Document::addObjects(), App::Document::getStandardObjectName(), App::Application::getUniqueDocumentName(), Base::Writer::getUniqueFileName(), App::Document::getUniqueObjectName(), App::Application::newDocument(), and App::PropertyString::setValue().
|
static |
|
static |
toStdString Convert a QString into a UTF-8 encoded std::string.
s | String to convert. |
Referenced by SpreadsheetGui::SheetView::aliasChanged(), TechDrawGui::TaskSectionView::apply(), SpreadsheetGui::SheetView::confirmAliasChanged(), TechDrawGui::TaskActiveView::createActiveView(), TechDrawGui::TaskHatch::createHatch(), TechDraw::DrawSVGTemplate::execute(), TechDraw::DrawViewDimension::formatValue(), FemGui::TaskFemConstraintFluidBoundary::getBoundaryType(), TechDraw::DrawViewDimension::getDefaultFormatSpec(), Spreadsheet::Cell::getFormattedQuantity(), FemGui::TaskFemConstraintFluidBoundary::getSubtype(), FemGui::TaskFemConstraintFluidBoundary::getThermalBoundaryType(), FemGui::TaskFemConstraintFluidBoundary::getTurbulenceSpecification(), SketcherGui::TaskSketcherConstraints::on_listWidgetConstraints_itemChanged(), TechDrawGui::TaskHatch::onFileChanged(), Spreadsheet::Sheet::recomputeCell(), Gui::ExpressionCompleter::slotUpdate(), TechDrawGui::TaskDetail::updateDetail(), TechDrawGui::TaskHatch::updateHatch(), and TechDrawGui::TaskSectionView::updateSectionView().
|
static |