#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) |
Member Function Documentation
◆ addNumber()
|
static |
◆ escapedUnicodeFromUtf8()
|
static |
Referenced by PartGui::Mirroring::accept(), CmdSketcherConstrainRadius::activated(), CmdSketcherConstrainDiameter::activated(), SpreadsheetGui::PropertiesDialog::apply(), CmdSketcherConstrainRadius::applyConstraint(), CmdSketcherConstrainDiameter::applyConstraint(), Gui::Application::exportTo(), Gui::ExpressionBinding::getEscapedExpressionString(), App::SubObjectT::getSubObjectPython(), Gui::Application::importFrom(), Gui::Dialog::DlgPropertyLink::linksToPython(), StartGui::Workbench::loadStartPage(), SketcherGui::TaskSketcherConstrains::on_listWidgetConstraints_itemChanged(), TechDraw::DrawViewSymbol::onChanged(), Gui::Application::open(), App::Application::processFiles(), Gui::Document::saveAs(), MeshCore::MeshOutput::SaveOBJ(), Gui::PropertyEditor::PropertyEnumItem::setValue(), Gui::PropertyEditor::PropertyStringListItem::setValue(), SketcherGui::ConstraintView::swapNamedOfSelectedItems(), and App::ObjectIdentifier::toEscapedString().
◆ escapedUnicodeToUtf8()
|
static |
◆ escapeEncodeFilename() [1/2]
|
static |
Referenced by TechDrawGui::TaskActiveView::createActiveView(), Gui::Application::exportTo(), Gui::Application::importFrom(), WebGui::BrowserView::onLinkClicked(), Gui::Application::open(), App::Application::processCmdLineFiles(), App::Application::processFiles(), Gui::Document::saveAs(), Gui::Document::saveCopy(), and TechDrawGui::MDIViewPage::saveDXF().
◆ escapeEncodeFilename() [2/2]
|
static |
◆ escapeEncodeString() [1/2]
|
static |
◆ escapeEncodeString() [2/2]
|
static |
◆ fromStdString()
|
static |
fromStdString Convert a std::string encoded as UTF-8 into a QString.
- Parameters
-
s std::string, expected to be UTF-8 encoded.
- Returns
- String represented as a QString.
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(), Gui::UIntSpinBox::onChange(), Gui::QuantitySpinBox::onChange(), SpreadsheetGui::PropertiesDialog::PropertiesDialog(), Gui::UIntSpinBox::resizeEvent(), Gui::IntSpinBox::resizeEvent(), Gui::QuantitySpinBox::resizeEvent(), Gui::DoubleSpinBox::resizeEvent(), Gui::ExpLineEdit::resizeEvent(), TechDrawGui::QGITile::setFont(), TechDrawGui::TaskSectionView::setUiEdit(), TechDrawGui::TaskRichAnno::setUiEdit(), TechDrawGui::TaskCenterLine::setUiEdit(), TechDrawGui::TaskLeaderLine::setUiEdit(), TechDrawGui::TaskDetail::setUiFromFeat(), TechDrawGui::TaskSectionView::setUiPrimary(), TechDrawGui::TaskCosVertex::setUiPrimary(), TechDrawGui::TaskRichAnno::setUiPrimary(), TechDrawGui::TaskCenterLine::setUiPrimary(), TechDrawGui::TaskLeaderLine::setUiPrimary(), SpreadsheetGui::SheetModel::SheetModel(), Gui::ExpressionCompleter::slotUpdate(), and FemGui::TaskFemConstraintFluidBoundary::TaskFemConstraintFluidBoundary().
◆ getIdentifier()
|
static |
◆ getUniqueName()
|
static |
◆ narrow()
|
static |
◆ toStdString()
|
static |
toStdString Convert a QString into a UTF-8 encoded std::string.
- Parameters
-
s String to convert.
- Returns
- A std::string encoded as UTF-8.
Referenced by CmdSketcherConstrainRadius::activated(), CmdSketcherConstrainDiameter::activated(), TechDrawGui::TaskSectionView::apply(), CmdSketcherConstrainRadius::applyConstraint(), CmdSketcherConstrainDiameter::applyConstraint(), TechDrawGui::TaskActiveView::createActiveView(), SpreadsheetGui::SheetView::editingFinished(), TechDraw::DrawSVGTemplate::execute(), FemGui::TaskFemConstraintFluidBoundary::getBoundaryType(), TechDraw::DrawViewDimension::getDefaultFormatSpec(), TechDraw::DrawViewDimension::getFormatedValue(), Spreadsheet::Cell::getFormattedQuantity(), FemGui::TaskFemConstraintFluidBoundary::getSubtype(), FemGui::TaskFemConstraintFluidBoundary::getThermalBoundaryType(), FemGui::TaskFemConstraintFluidBoundary::getTurbulenceSpecification(), SketcherGui::TaskSketcherConstrains::on_listWidgetConstraints_itemChanged(), Spreadsheet::Sheet::recomputeCell(), Gui::ExpressionCompleter::slotUpdate(), TechDrawGui::TaskSectionView::TaskSectionView(), TechDrawGui::TaskDetail::updateDetail(), and TechDrawGui::TaskSectionView::updateSectionView().
◆ widen()
|
static |
The documentation for this struct was generated from the following files:
- src/Base/Tools.h
- src/Base/Tools.cpp