From 47bc102e28fd22ecbe18f8e7733e440842175397 Mon Sep 17 00:00:00 2001 From: Pasukhin Dmitry Date: Sun, 21 Sep 2025 11:50:56 +0100 Subject: [PATCH] Coding - Method guard iterative update (#732) Used regex in src folder: ^//[\s\n\r\t]*[-=]{2,}[=]*[\n\r]*//[\s\n\r\t]*[a-z]+[\s\n\r\t]*:[\s\n\r\t]*[a-z0-9_:\t\s]*[\s\n\r\t]*//[\s\n\r\t]*[a-z]+[\s\n\r\t]*:[\s\n\r\t]*[a-z0-9_\s\t./-><]{0,22}//[\s\n\r\t]*[-=]{3,}[=]* --- .../TKCAF/TNaming/TNaming_Name.cxx | 6 +- .../TKCDF/LDOM/LDOMBasicString.cxx | 5 +- .../TKCDF/LDOM/LDOM_CharacterData.cxx | 5 +- .../TKLCAF/TDF/TDF_Attribute.cxx | 30 +- .../TKLCAF/TDF/TDF_IDFilter.cxx | 5 +- .../TKLCAF/TDF/TDF_Tool.cxx | 5 +- .../TKLCAF/TFunction/TFunction_Logbook.cxx | 10 +- .../STEPCAFControl/STEPCAFControl_Reader.cxx | 6 +- ...GlobUnitAssCtxAndGlobUncertaintyAssCtx.cxx | 96 +---- .../StepToTopoDS_TranslateCompositeCurve.cxx | 5 +- .../TopoDSToStep_MakeStepEdge.cxx | 21 +- .../TopoDSToStep_MakeStepFace.cxx | 22 +- .../TopoDSToStep_MakeStepVertex.cxx | 21 +- .../TopoDSToStep_MakeStepWire.cxx | 20 +- .../TKXSBase/MoniTool/MoniTool_Timer.cxx | 5 +- .../TKDCAF/DDF/DDF_TransactionCommands.cxx | 5 +- .../TKDCAF/DDataStd/DDataStd_TreeCommands.cxx | 5 +- .../TKDCAF/DDocStd/DDocStd_MTMCommands.cxx | 5 +- src/Draw/TKDCAF/DNaming/DNaming.cxx | 6 +- .../TKDCAF/DNaming/DNaming_PrismDriver.cxx | 7 +- .../DNaming/DNaming_RevolutionDriver.cxx | 6 +- .../TKDCAF/DNaming/DNaming_SphereDriver.cxx | 6 +- src/Draw/TKQADraw/QABugs/QABugs_11.cxx | 6 +- .../BRepTest/BRepTest_SurfaceCommands.cxx | 5 +- src/Draw/TKXDEDRAW/XDEDRAW/XDEDRAW_Notes.cxx | 6 +- .../BSplCLib/BSplCLib_CurveComputation.gxx | 5 +- .../NCollection/NCollection_BaseAllocator.cxx | 6 +- .../NCollection/NCollection_BaseSequence.cxx | 5 +- .../TKernel/OSD/OSD_Environment.cxx | 32 +- .../TKernel/OSD/OSD_SharedLibrary.cxx | 5 +- .../TColStd/TColStd_PackedMapOfInteger.cxx | 10 +- .../TCollection/TCollection_AsciiString.cxx | 375 +++++++----------- .../TCollection/TCollection_AsciiString.lxx | 25 +- .../TCollection_ExtendedString.cxx | 235 +++++------ .../TCollection/TCollection_HAsciiString.cxx | 295 ++++++-------- .../TCollection/TCollection_HAsciiString.lxx | 20 +- .../TCollection_HExtendedString.cxx | 155 +++----- .../TKBool/BRepFill/BRepFill_Draft.cxx | 6 +- .../TKBool/BRepFill/BRepFill_PipeShell.cxx | 6 +- .../TopOpeBRep_FFTransitionTool.cxx | 5 +- .../TopOpeBRep/TopOpeBRep_ProcessGR.cxx | 4 +- .../TopOpeBRepTool_CurveTool.cxx | 6 +- .../TopOpeBRepTool/TopOpeBRepTool_PROJECT.cxx | 4 +- .../TopOpeBRepTool_TOPOLOGY.cxx | 20 +- .../TopOpeBRepTool/TopOpeBRepTool_matter.cxx | 4 +- .../BRepBlend/BRepBlend_RstRstLineBuilder.cxx | 5 +- .../GeomFill/GeomFill_SectionPlacement.cxx | 6 +- .../GeomPlate/GeomPlate_BuildPlateSurface.cxx | 10 +- .../IntPatch/IntPatch_PrmPrmIntersection.cxx | 6 +- .../TKGeomAlgo/Intf/Intf_TangentZone.cxx | 5 +- .../TKHLR/Contap/Contap_ArcFunction.cxx | 7 +- .../TKHLR/HLRBRep/HLRBRep_EdgeBuilder.cxx | 5 +- .../TKPrim/BRepPrim/BRepPrim_Builder.cxx | 10 +- .../BRepExtrema/BRepExtrema_DistanceSS.cxx | 25 +- src/ModelingData/TKBRep/BRep/BRep_Tool.cxx | 5 +- .../TKGeomBase/FEmTool/FEmTool_Assembly.cxx | 10 +- .../IVtkTools/IVtkTools_ShapeObject.cxx | 6 +- .../TKOpenGl/OpenGl/OpenGl_ShaderStates.cxx | 12 +- .../TKService/Font/Font_FTFont.hxx | 0 .../TKService/Font/Font_TextFormatter.hxx | 0 .../TKV3d/AIS/AIS_InteractiveContext.cxx | 6 +- .../TKV3d/AIS/AIS_Manipulator.cxx | 6 +- .../TKV3d/DsgPrs/DsgPrs_AnglePresentation.cxx | 5 +- .../TKV3d/PrsDim/PrsDim_LengthDimension.cxx | 6 +- .../PrsDim/PrsDim_PerpendicularRelation.cxx | 12 +- .../SelectMgr_SelectableObjectSet.cxx | 8 +- 66 files changed, 604 insertions(+), 1093 deletions(-) mode change 100755 => 100644 src/Visualization/TKOpenGl/OpenGl/OpenGl_ShaderStates.cxx mode change 100755 => 100644 src/Visualization/TKService/Font/Font_FTFont.hxx mode change 100755 => 100644 src/Visualization/TKService/Font/Font_TextFormatter.hxx diff --git a/src/ApplicationFramework/TKCAF/TNaming/TNaming_Name.cxx b/src/ApplicationFramework/TKCAF/TNaming/TNaming_Name.cxx index f0fb2777f5..9c271ee2ad 100644 --- a/src/ApplicationFramework/TKCAF/TNaming/TNaming_Name.cxx +++ b/src/ApplicationFramework/TKCAF/TNaming/TNaming_Name.cxx @@ -1900,10 +1900,8 @@ static Standard_Boolean ORientation(const TDF_Label& L, return Standard_True; } -//=========================================================================== -// function : WireIN -// purpose : to solve WIREIN name -//======================================================================= +//================================================================================================= + static Standard_Boolean WireIN(const TDF_Label& L, const TDF_LabelMap& Valid, const TNaming_ListOfNamedShape& Args, diff --git a/src/ApplicationFramework/TKCDF/LDOM/LDOMBasicString.cxx b/src/ApplicationFramework/TKCDF/LDOM/LDOMBasicString.cxx index 05f7c7b5af..7fbc99579e 100644 --- a/src/ApplicationFramework/TKCDF/LDOM/LDOMBasicString.cxx +++ b/src/ApplicationFramework/TKCDF/LDOM/LDOMBasicString.cxx @@ -294,10 +294,7 @@ LDOMBasicString::operator TCollection_ExtendedString() const return TCollection_ExtendedString(); } -//======================================================================= -// function : GetInteger -// purpose : Conversion to Integer -//======================================================================= +//================================================================================================= Standard_Boolean LDOMBasicString::GetInteger(Standard_Integer& aResult) const { diff --git a/src/ApplicationFramework/TKCDF/LDOM/LDOM_CharacterData.cxx b/src/ApplicationFramework/TKCDF/LDOM/LDOM_CharacterData.cxx index a2fb951180..d6216f4774 100644 --- a/src/ApplicationFramework/TKCDF/LDOM/LDOM_CharacterData.cxx +++ b/src/ApplicationFramework/TKCDF/LDOM/LDOM_CharacterData.cxx @@ -58,10 +58,7 @@ void LDOM_CharacterData::setData(const LDOMString& theValue) myLength = -1; } -//======================================================================= -// function : getLength -// purpose : query the data length -//======================================================================= +//================================================================================================= Standard_Integer LDOM_CharacterData::getLength() const { diff --git a/src/ApplicationFramework/TKLCAF/TDF/TDF_Attribute.cxx b/src/ApplicationFramework/TKLCAF/TDF/TDF_Attribute.cxx index 28c2ff0c2c..deb71fa372 100644 --- a/src/ApplicationFramework/TKLCAF/TDF/TDF_Attribute.cxx +++ b/src/ApplicationFramework/TKLCAF/TDF/TDF_Attribute.cxx @@ -260,40 +260,28 @@ void TDF_Attribute::RemoveBackup() void TDF_Attribute::References(const Handle(TDF_DataSet)& /*aDataSet*/) const {} -//======================================================================= -// function : DeltaOnAddition -// purpose : Creates such a delta. -//======================================================================= +//================================================================================================= Handle(TDF_DeltaOnAddition) TDF_Attribute::DeltaOnAddition() const { return new TDF_DeltaOnAddition(this); } -//======================================================================= -// function : DeltaOnForget -// purpose : Creates such a delta. -//======================================================================= +//================================================================================================= Handle(TDF_DeltaOnForget) TDF_Attribute::DeltaOnForget() const { return new TDF_DeltaOnForget(this); } -//======================================================================= -// function : DeltaOnResume -// purpose : Creates such a delta. -//======================================================================= +//================================================================================================= Handle(TDF_DeltaOnResume) TDF_Attribute::DeltaOnResume() const { return new TDF_DeltaOnResume(this); } -//======================================================================= -// function : DeltaOnModification -// purpose : Creates such a delta. -//======================================================================= +//================================================================================================= Handle(TDF_DeltaOnModification) TDF_Attribute::DeltaOnModification( const Handle(TDF_Attribute)& anOldAttribute) const @@ -301,10 +289,7 @@ Handle(TDF_DeltaOnModification) TDF_Attribute::DeltaOnModification( return new TDF_DefaultDeltaOnModification(anOldAttribute); } -//======================================================================= -// function : DeltaOnModification -// purpose : Applies such a delta. -//======================================================================= +//================================================================================================= void TDF_Attribute::DeltaOnModification(const Handle(TDF_DeltaOnModification)& aDelta) { @@ -312,10 +297,7 @@ void TDF_Attribute::DeltaOnModification(const Handle(TDF_DeltaOnModification)& a Restore(aDelta->Attribute()); } -//======================================================================= -// function : DeltaOnRemoval -// purpose : Creates such a delta. -//======================================================================= +//================================================================================================= Handle(TDF_DeltaOnRemoval) TDF_Attribute::DeltaOnRemoval() const { diff --git a/src/ApplicationFramework/TKLCAF/TDF/TDF_IDFilter.cxx b/src/ApplicationFramework/TKLCAF/TDF/TDF_IDFilter.cxx index 2d0d2d9572..9253cc7580 100644 --- a/src/ApplicationFramework/TKLCAF/TDF/TDF_IDFilter.cxx +++ b/src/ApplicationFramework/TKLCAF/TDF/TDF_IDFilter.cxx @@ -83,10 +83,7 @@ void TDF_IDFilter::Ignore(const Standard_GUID& anID) myIDMap.Add(anID); } -//======================================================================= -// function : Ignore -// purpose : Ignores a list of ID. -//======================================================================= +//================================================================================================= void TDF_IDFilter::Ignore(const TDF_IDList& anIDList) { diff --git a/src/ApplicationFramework/TKLCAF/TDF/TDF_Tool.cxx b/src/ApplicationFramework/TKLCAF/TDF/TDF_Tool.cxx index 94d43817b2..05fc29c5b5 100644 --- a/src/ApplicationFramework/TKLCAF/TDF/TDF_Tool.cxx +++ b/src/ApplicationFramework/TKLCAF/TDF/TDF_Tool.cxx @@ -579,10 +579,7 @@ void TDF_Tool::ExtendedDeepDump(Standard_OStream& anOS, TDF_Tool::ExtendedDeepDump(anOS, aDF->Root(), aFilter); } -//======================================================================= -// function : DeepDump -// purpose : Deep dump of a label. -//======================================================================= +//================================================================================================= void TDF_Tool::DeepDump(Standard_OStream& anOS, const TDF_Label& aLabel) { diff --git a/src/ApplicationFramework/TKLCAF/TFunction/TFunction_Logbook.cxx b/src/ApplicationFramework/TKLCAF/TFunction/TFunction_Logbook.cxx index 7759bd2ee3..5c039629e1 100644 --- a/src/ApplicationFramework/TKLCAF/TFunction/TFunction_Logbook.cxx +++ b/src/ApplicationFramework/TKLCAF/TFunction/TFunction_Logbook.cxx @@ -160,10 +160,7 @@ void TFunction_Logbook::SetImpacted(const TDF_Label& L, const Standard_Boolean W } } -//======================================================================= -// function : GetValid -// purpose : Returns valid labels. -//======================================================================= +//================================================================================================= void TFunction_Logbook::GetValid(TDF_LabelMap& Ls) const { @@ -278,10 +275,7 @@ Handle(TDF_Attribute) TFunction_Logbook::NewEmpty() const return new TFunction_Logbook(); } -//======================================================================= -// function : Dump -// purpose : Dump of modifications -//======================================================================= +//================================================================================================= Standard_OStream& TFunction_Logbook::Dump(Standard_OStream& stream) const { diff --git a/src/DataExchange/TKDESTEP/STEPCAFControl/STEPCAFControl_Reader.cxx b/src/DataExchange/TKDESTEP/STEPCAFControl/STEPCAFControl_Reader.cxx index f8e6a39f74..e245492cbb 100644 --- a/src/DataExchange/TKDESTEP/STEPCAFControl/STEPCAFControl_Reader.cxx +++ b/src/DataExchange/TKDESTEP/STEPCAFControl/STEPCAFControl_Reader.cxx @@ -2427,10 +2427,8 @@ Standard_Boolean readPMIPresentation(const Handle(Standard_Transient)& the return (aNbShapes > 0); } -//======================================================================= -// function : readAnnotationPlane -// purpose : read annotation plane -//======================================================================= +//================================================================================================= + Standard_Boolean readAnnotationPlane(const Handle(StepVisual_AnnotationPlane)& theAnnotationPlane, gp_Ax2& thePlane, const StepData_Factors& theLocalFactors) diff --git a/src/DataExchange/TKDESTEP/StepGeom/StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx.cxx b/src/DataExchange/TKDESTEP/StepGeom/StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx.cxx index f93cf3a924..62d0458189 100644 --- a/src/DataExchange/TKDESTEP/StepGeom/StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx.cxx +++ b/src/DataExchange/TKDESTEP/StepGeom/StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx.cxx @@ -24,19 +24,14 @@ IMPLEMENT_STANDARD_RTTIEXT(StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx, StepRepr_RepresentationContext) -// -------------------------------------------------------------------------------------------------- -// Method : -// Purpose : -// -------------------------------------------------------------------------------------------------- +//================================================================================================= + StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx:: StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx() { } -// -------------------------------------------------------------------------------------------------- -// Method : -// Purpose : -// -------------------------------------------------------------------------------------------------- +//================================================================================================= void StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx::Init( const Handle(TCollection_HAsciiString)& aContextIdentifier, @@ -53,10 +48,7 @@ void StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx::Init( StepRepr_RepresentationContext::Init(aContextIdentifier, aContextType); } -// -------------------------------------------------------------------------------------------------- -// Method : -// Purpose : -// -------------------------------------------------------------------------------------------------- +//================================================================================================= void StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx::Init( const Handle(TCollection_HAsciiString)& aContextIdentifier, @@ -85,10 +77,7 @@ void StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx::Init( globalUncertaintyAssignedContext->Init(aContextIdentifier, aContextType, anUncertainty); } -// -------------------------------------------------------------------------------------------------- -// Method : -// Purpose : -// -------------------------------------------------------------------------------------------------- +//================================================================================================= void StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx:: SetGeometricRepresentationContext( @@ -97,10 +86,7 @@ void StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx:: geometricRepresentationContext = aGeometricRepresentationContext; } -// -------------------------------------------------------------------------------------------------- -// Method : -// Purpose : -// -------------------------------------------------------------------------------------------------- +//================================================================================================= Handle(StepGeom_GeometricRepresentationContext) StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx::GeometricRepresentationContext() @@ -109,10 +95,7 @@ Handle(StepGeom_GeometricRepresentationContext) return geometricRepresentationContext; } -// -------------------------------------------------------------------------------------------------- -// Method : -// Purpose : -// -------------------------------------------------------------------------------------------------- +//================================================================================================= void StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx::SetGlobalUnitAssignedContext( const Handle(StepRepr_GlobalUnitAssignedContext)& aGlobalUnitAssignedContext) @@ -120,10 +103,7 @@ void StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx::SetGlobal globalUnitAssignedContext = aGlobalUnitAssignedContext; } -// -------------------------------------------------------------------------------------------------- -// Method : -// Purpose : -// -------------------------------------------------------------------------------------------------- +//================================================================================================= Handle(StepRepr_GlobalUnitAssignedContext) StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx::GlobalUnitAssignedContext() @@ -132,10 +112,7 @@ Handle(StepRepr_GlobalUnitAssignedContext) return globalUnitAssignedContext; } -// -------------------------------------------------------------------------------------------------- -// Method : -// Purpose : -// -------------------------------------------------------------------------------------------------- +//================================================================================================= void StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx:: SetGlobalUncertaintyAssignedContext( @@ -144,10 +121,7 @@ void StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx:: globalUncertaintyAssignedContext = aGlobalUncertaintyAssignedCtx; } -// -------------------------------------------------------------------------------------------------- -// Method : -// Purpose : -// -------------------------------------------------------------------------------------------------- +//================================================================================================= Handle(StepRepr_GlobalUncertaintyAssignedContext) StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx:: @@ -160,10 +134,7 @@ Handle(StepRepr_GlobalUncertaintyAssignedContext) //--- Specific Methods for AND classe field access : GeometricRepresentationContext --- //------------------------------------------------------------------------------------- -// -------------------------------------------------------------------------------------------------- -// Method : -// Purpose : -// -------------------------------------------------------------------------------------------------- +//================================================================================================= void StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx::SetCoordinateSpaceDimension( const Standard_Integer aCoordinateSpaceDimension) @@ -171,10 +142,7 @@ void StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx::SetCoordi geometricRepresentationContext->SetCoordinateSpaceDimension(aCoordinateSpaceDimension); } -// -------------------------------------------------------------------------------------------------- -// Method : -// Purpose : -// -------------------------------------------------------------------------------------------------- +//================================================================================================= Standard_Integer StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx:: CoordinateSpaceDimension() const @@ -186,10 +154,7 @@ Standard_Integer StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCt //--- Specific Methods for AND classe field access : GlobalUnitAssignedContext --- //--------------------------------------------------------------------------------- -// -------------------------------------------------------------------------------------------------- -// Method : -// Purpose : -// -------------------------------------------------------------------------------------------------- +//================================================================================================= void StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx::SetUnits( const Handle(StepBasic_HArray1OfNamedUnit)& aUnits) @@ -197,10 +162,7 @@ void StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx::SetUnits( globalUnitAssignedContext->SetUnits(aUnits); } -// -------------------------------------------------------------------------------------------------- -// Method : -// Purpose : -// -------------------------------------------------------------------------------------------------- +//================================================================================================= Handle(StepBasic_HArray1OfNamedUnit) StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx::Units() const @@ -208,10 +170,7 @@ Handle(StepBasic_HArray1OfNamedUnit) return globalUnitAssignedContext->Units(); } -// -------------------------------------------------------------------------------------------------- -// Method : -// Purpose : -// -------------------------------------------------------------------------------------------------- +//================================================================================================= Handle(StepBasic_NamedUnit) StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx:: UnitsValue(const Standard_Integer num) const @@ -219,10 +178,7 @@ Handle(StepBasic_NamedUnit) StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncer return globalUnitAssignedContext->UnitsValue(num); } -// -------------------------------------------------------------------------------------------------- -// Method : -// Purpose : -// -------------------------------------------------------------------------------------------------- +//================================================================================================= Standard_Integer StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx::NbUnits() const { @@ -233,10 +189,7 @@ Standard_Integer StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCt //--- Specific Methods for AND classe field access : GlobalUncertaintyAssignedContext --- //---------------------------------------------------------------------------------------- -// -------------------------------------------------------------------------------------------------- -// Method : -// Purpose : -// -------------------------------------------------------------------------------------------------- +//================================================================================================= void StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx::SetUncertainty( const Handle(StepBasic_HArray1OfUncertaintyMeasureWithUnit)& aUncertainty) @@ -244,10 +197,7 @@ void StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx::SetUncert globalUncertaintyAssignedContext->SetUncertainty(aUncertainty); } -// -------------------------------------------------------------------------------------------------- -// Method : -// Purpose : -// -------------------------------------------------------------------------------------------------- +//================================================================================================= Handle(StepBasic_HArray1OfUncertaintyMeasureWithUnit) StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx::Uncertainty() const @@ -255,10 +205,7 @@ Handle(StepBasic_HArray1OfUncertaintyMeasureWithUnit) return globalUncertaintyAssignedContext->Uncertainty(); } -// -------------------------------------------------------------------------------------------------- -// Method : -// Purpose : -// -------------------------------------------------------------------------------------------------- +//================================================================================================= Handle(StepBasic_UncertaintyMeasureWithUnit) StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx::UncertaintyValue( @@ -267,10 +214,7 @@ Handle(StepBasic_UncertaintyMeasureWithUnit) return globalUncertaintyAssignedContext->UncertaintyValue(num); } -// -------------------------------------------------------------------------------------------------- -// Method : -// Purpose : -// -------------------------------------------------------------------------------------------------- +//================================================================================================= Standard_Integer StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx::NbUncertainty() const diff --git a/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_TranslateCompositeCurve.cxx b/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_TranslateCompositeCurve.cxx index 3d524ee82b..40c1b122ef 100644 --- a/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_TranslateCompositeCurve.cxx +++ b/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_TranslateCompositeCurve.cxx @@ -305,10 +305,7 @@ Standard_Boolean StepToTopoDS_TranslateCompositeCurve::Init( return Standard_True; } -//======================================================================= -// function : Value -// purpose : return resulting wire -//======================================================================= +//================================================================================================= const TopoDS_Wire& StepToTopoDS_TranslateCompositeCurve::Value() const { diff --git a/src/DataExchange/TKDESTEP/TopoDSToStep/TopoDSToStep_MakeStepEdge.cxx b/src/DataExchange/TKDESTEP/TopoDSToStep/TopoDSToStep_MakeStepEdge.cxx index 2df78c0dd5..5df74481d2 100644 --- a/src/DataExchange/TKDESTEP/TopoDSToStep/TopoDSToStep_MakeStepEdge.cxx +++ b/src/DataExchange/TKDESTEP/TopoDSToStep/TopoDSToStep_MakeStepEdge.cxx @@ -53,9 +53,9 @@ #include // Processing of non-manifold topology (ssv; 11.11.2010) -// ---------------------------------------------------------------------------- -// Constructors -// ---------------------------------------------------------------------------- + +//================================================================================================= + TopoDSToStep_MakeStepEdge::TopoDSToStep_MakeStepEdge() : myError(TopoDSToStep_EdgeOther) { @@ -71,10 +71,7 @@ TopoDSToStep_MakeStepEdge::TopoDSToStep_MakeStepEdge(const TopoDS_Edge& Init(E, T, FP, theLocalFactors); } -// ---------------------------------------------------------------------------- -// Method : Init -// Purpose : -// ---------------------------------------------------------------------------- +//================================================================================================= void TopoDSToStep_MakeStepEdge::Init(const TopoDS_Edge& aEdge, TopoDSToStep_Tool& aTool, @@ -344,10 +341,7 @@ void TopoDSToStep_MakeStepEdge::Init(const TopoDS_Edge& aEdge return; } -// ---------------------------------------------------------------------------- -// Method : Value -// Purpose : -// ---------------------------------------------------------------------------- +//================================================================================================= const Handle(StepShape_TopologicalRepresentationItem)& TopoDSToStep_MakeStepEdge::Value() const { @@ -355,10 +349,7 @@ const Handle(StepShape_TopologicalRepresentationItem)& TopoDSToStep_MakeStepEdge return myResult; } -// ---------------------------------------------------------------------------- -// Method : Error -// Purpose : -// ---------------------------------------------------------------------------- +//================================================================================================= TopoDSToStep_MakeEdgeError TopoDSToStep_MakeStepEdge::Error() const { diff --git a/src/DataExchange/TKDESTEP/TopoDSToStep/TopoDSToStep_MakeStepFace.cxx b/src/DataExchange/TKDESTEP/TopoDSToStep/TopoDSToStep_MakeStepFace.cxx index 97bdbea31c..d3f9a67992 100644 --- a/src/DataExchange/TKDESTEP/TopoDSToStep/TopoDSToStep_MakeStepFace.cxx +++ b/src/DataExchange/TKDESTEP/TopoDSToStep/TopoDSToStep_MakeStepFace.cxx @@ -75,9 +75,9 @@ #include // Processing of non-manifold topology (ssv; 10.11.2010) -// ---------------------------------------------------------------------------- -// Constructors -// ---------------------------------------------------------------------------- + +//================================================================================================= + TopoDSToStep_MakeStepFace::TopoDSToStep_MakeStepFace() : myError(TopoDSToStep_FaceOther) { @@ -93,10 +93,8 @@ TopoDSToStep_MakeStepFace::TopoDSToStep_MakeStepFace(const TopoDS_Face& Init(F, T, FP, theLocalFactors); } -// ---------------------------------------------------------------------------- -// Method : Init -// Purpose : -// ---------------------------------------------------------------------------- +//================================================================================================= + void TopoDSToStep_MakeStepFace::Init(const TopoDS_Face& aFace, TopoDSToStep_Tool& aTool, const Handle(Transfer_FinderProcess)& FP, @@ -475,10 +473,7 @@ void TopoDSToStep_MakeStepFace::Init(const TopoDS_Face& aFace } } -// ---------------------------------------------------------------------------- -// Method : Value -// Purpose : -// ---------------------------------------------------------------------------- +//================================================================================================= const Handle(StepShape_TopologicalRepresentationItem)& TopoDSToStep_MakeStepFace::Value() const { @@ -486,10 +481,7 @@ const Handle(StepShape_TopologicalRepresentationItem)& TopoDSToStep_MakeStepFace return myResult; } -// ---------------------------------------------------------------------------- -// Method : Error -// Purpose : -// ---------------------------------------------------------------------------- +//================================================================================================= TopoDSToStep_MakeFaceError TopoDSToStep_MakeStepFace::Error() const { diff --git a/src/DataExchange/TKDESTEP/TopoDSToStep/TopoDSToStep_MakeStepVertex.cxx b/src/DataExchange/TKDESTEP/TopoDSToStep/TopoDSToStep_MakeStepVertex.cxx index c72fb64c50..a870d3a38b 100644 --- a/src/DataExchange/TKDESTEP/TopoDSToStep/TopoDSToStep_MakeStepVertex.cxx +++ b/src/DataExchange/TKDESTEP/TopoDSToStep/TopoDSToStep_MakeStepVertex.cxx @@ -29,9 +29,9 @@ #include // Processing of non-manifold topology (ssv; 11.11.2010) -// ---------------------------------------------------------------------------- -// Constructors -// ---------------------------------------------------------------------------- + +//================================================================================================= + TopoDSToStep_MakeStepVertex::TopoDSToStep_MakeStepVertex() : myError(TopoDSToStep_VertexOther) { @@ -47,10 +47,7 @@ TopoDSToStep_MakeStepVertex::TopoDSToStep_MakeStepVertex(const TopoDS_Vertex& Init(V, T, FP, theLocalFactors); } -// ---------------------------------------------------------------------------- -// Method : Init -// Purpose : -// ---------------------------------------------------------------------------- +//================================================================================================= void TopoDSToStep_MakeStepVertex::Init(const TopoDS_Vertex& aVertex, TopoDSToStep_Tool& aTool, @@ -102,10 +99,7 @@ void TopoDSToStep_MakeStepVertex::Init(const TopoDS_Vertex& aVe myResult = Vpms; } -// ---------------------------------------------------------------------------- -// Method : Value -// Purpose : -// ---------------------------------------------------------------------------- +//================================================================================================= const Handle(StepShape_TopologicalRepresentationItem)& TopoDSToStep_MakeStepVertex::Value() const { @@ -113,10 +107,7 @@ const Handle(StepShape_TopologicalRepresentationItem)& TopoDSToStep_MakeStepVert return myResult; } -// ---------------------------------------------------------------------------- -// Method : Error -// Purpose : -// ---------------------------------------------------------------------------- +//================================================================================================= TopoDSToStep_MakeVertexError TopoDSToStep_MakeStepVertex::Error() const { diff --git a/src/DataExchange/TKDESTEP/TopoDSToStep/TopoDSToStep_MakeStepWire.cxx b/src/DataExchange/TKDESTEP/TopoDSToStep/TopoDSToStep_MakeStepWire.cxx index 7ad333be69..008998c9b5 100644 --- a/src/DataExchange/TKDESTEP/TopoDSToStep/TopoDSToStep_MakeStepWire.cxx +++ b/src/DataExchange/TKDESTEP/TopoDSToStep/TopoDSToStep_MakeStepWire.cxx @@ -43,9 +43,8 @@ #include #include -// ---------------------------------------------------------------------------- -// Constructors -// ---------------------------------------------------------------------------- +//================================================================================================= + TopoDSToStep_MakeStepWire::TopoDSToStep_MakeStepWire() : myError(TopoDSToStep_WireOther) { @@ -61,10 +60,7 @@ TopoDSToStep_MakeStepWire::TopoDSToStep_MakeStepWire(const TopoDS_Wire& Init(W, T, FP, theLocalFactors); } -// ---------------------------------------------------------------------------- -// Method : Init -// Purpose : -// ---------------------------------------------------------------------------- +//================================================================================================= void TopoDSToStep_MakeStepWire::Init(const TopoDS_Wire& aWire, TopoDSToStep_Tool& aTool, @@ -301,10 +297,7 @@ void TopoDSToStep_MakeStepWire::Init(const TopoDS_Wire& aWire } } -// ---------------------------------------------------------------------------- -// Method : Value -// Purpose : -// ---------------------------------------------------------------------------- +//================================================================================================= const Handle(StepShape_TopologicalRepresentationItem)& TopoDSToStep_MakeStepWire::Value() const { @@ -312,10 +305,7 @@ const Handle(StepShape_TopologicalRepresentationItem)& TopoDSToStep_MakeStepWire return myResult; } -// ---------------------------------------------------------------------------- -// Method : Error -// Purpose : -// ---------------------------------------------------------------------------- +//================================================================================================= TopoDSToStep_MakeWireError TopoDSToStep_MakeStepWire::Error() const { diff --git a/src/DataExchange/TKXSBase/MoniTool/MoniTool_Timer.cxx b/src/DataExchange/TKXSBase/MoniTool/MoniTool_Timer.cxx index 3395ca4daf..f7f8dd2bb2 100644 --- a/src/DataExchange/TKXSBase/MoniTool/MoniTool_Timer.cxx +++ b/src/DataExchange/TKXSBase/MoniTool/MoniTool_Timer.cxx @@ -44,10 +44,7 @@ void MoniTool_Timer::Dump(Standard_OStream& ostr) ostr << buff << std::endl; } -//======================================================================= -// function : Dictionary -// purpose : Return DataMapOfTimer -//======================================================================= +//================================================================================================= MoniTool_DataMapOfTimer& MoniTool_Timer::Dictionary() { diff --git a/src/Draw/TKDCAF/DDF/DDF_TransactionCommands.cxx b/src/Draw/TKDCAF/DDF/DDF_TransactionCommands.cxx index f582cc106c..31fc22abaa 100644 --- a/src/Draw/TKDCAF/DDF/DDF_TransactionCommands.cxx +++ b/src/Draw/TKDCAF/DDF/DDF_TransactionCommands.cxx @@ -77,10 +77,7 @@ static Standard_Integer AbortTran(Draw_Interpretor& di, Standard_Integer n, cons return 0; } -//======================================================================= -// function : CommitTran -// purpose : Commits a transaction -//======================================================================= +//================================================================================================= static Standard_Integer CommitTran(Draw_Interpretor& di, Standard_Integer n, const char** a) { diff --git a/src/Draw/TKDCAF/DDataStd/DDataStd_TreeCommands.cxx b/src/Draw/TKDCAF/DDataStd/DDataStd_TreeCommands.cxx index 253f37dd9a..28d179fea2 100644 --- a/src/Draw/TKDCAF/DDataStd/DDataStd_TreeCommands.cxx +++ b/src/Draw/TKDCAF/DDataStd/DDataStd_TreeCommands.cxx @@ -529,10 +529,7 @@ static Standard_Integer DDataStd_ChildNodeNext(Draw_Interpretor& /*di*/, return 0; } -//======================================================================= -// TreeNode : ChildNodeNextBrother -// purpose : ChildNodeNext Brother -//======================================================================= +//================================================================================================= static Standard_Integer DDataStd_ChildNodeNextBrother(Draw_Interpretor& /*di*/, Standard_Integer /*n*/, diff --git a/src/Draw/TKDCAF/DDocStd/DDocStd_MTMCommands.cxx b/src/Draw/TKDCAF/DDocStd/DDocStd_MTMCommands.cxx index 6e4006bd4b..1decc6a6b8 100644 --- a/src/Draw/TKDCAF/DDocStd/DDocStd_MTMCommands.cxx +++ b/src/Draw/TKDCAF/DDocStd/DDocStd_MTMCommands.cxx @@ -83,10 +83,7 @@ static int mtmAddDocument(Draw_Interpretor& di, int n, const char** a) return 0; } -//======================================================================= -// function : mtmOpenTransaction -// purpose : opens new transaction -//======================================================================= +//================================================================================================= static int mtmOpenTransaction(Draw_Interpretor& di, int /*n*/, const char** /*a*/) { diff --git a/src/Draw/TKDCAF/DNaming/DNaming.cxx b/src/Draw/TKDCAF/DNaming/DNaming.cxx index 3b9245d463..1b2363e65b 100644 --- a/src/Draw/TKDCAF/DNaming/DNaming.cxx +++ b/src/Draw/TKDCAF/DNaming/DNaming.cxx @@ -703,10 +703,8 @@ Handle(TFunction_Function) DNaming::GetFirstFunction(const Handle(TDataStd_UAttr return aFirstFun; } -//======================================================================= -// function : GetLastFunction -// purpose : Returns Last function -//======================================================================= +//================================================================================================= + Handle(TFunction_Function) DNaming::GetLastFunction(const Handle(TDataStd_UAttribute)& theObject) { Handle(TFunction_Function) aLastFun; diff --git a/src/Draw/TKDCAF/DNaming/DNaming_PrismDriver.cxx b/src/Draw/TKDCAF/DNaming/DNaming_PrismDriver.cxx index 19a97a2f5e..0f230ff1bb 100644 --- a/src/Draw/TKDCAF/DNaming/DNaming_PrismDriver.cxx +++ b/src/Draw/TKDCAF/DNaming/DNaming_PrismDriver.cxx @@ -81,10 +81,9 @@ static void Write(const TopoDS_Shape& shape, const Standard_CString filename) save.close(); } #endif -//======================================================================= -// function : Execute -// purpose : Executes the function -//======================================================================= + +//================================================================================================= + Standard_Integer DNaming_PrismDriver::Execute(Handle(TFunction_Logbook)& theLog) const { Handle(TFunction_Function) aFunction; diff --git a/src/Draw/TKDCAF/DNaming/DNaming_RevolutionDriver.cxx b/src/Draw/TKDCAF/DNaming/DNaming_RevolutionDriver.cxx index b70e489b9c..3461189263 100644 --- a/src/Draw/TKDCAF/DNaming/DNaming_RevolutionDriver.cxx +++ b/src/Draw/TKDCAF/DNaming/DNaming_RevolutionDriver.cxx @@ -69,10 +69,8 @@ Standard_Boolean DNaming_RevolutionDriver::MustExecute(const Handle(TFunction_Lo return Standard_True; } -//======================================================================= -// function : Execute -// purpose : Executes the function -//======================================================================= +//================================================================================================= + Standard_Integer DNaming_RevolutionDriver::Execute(Handle(TFunction_Logbook)& theLog) const { Handle(TFunction_Function) aFunction; diff --git a/src/Draw/TKDCAF/DNaming/DNaming_SphereDriver.cxx b/src/Draw/TKDCAF/DNaming/DNaming_SphereDriver.cxx index 4b73105a86..665613c478 100644 --- a/src/Draw/TKDCAF/DNaming/DNaming_SphereDriver.cxx +++ b/src/Draw/TKDCAF/DNaming/DNaming_SphereDriver.cxx @@ -61,10 +61,8 @@ Standard_Boolean DNaming_SphereDriver::MustExecute(const Handle(TFunction_Logboo return Standard_True; } -//======================================================================= -// function : Execute -// purpose : Executes the function -//======================================================================= +//================================================================================================= + Standard_Integer DNaming_SphereDriver::Execute(Handle(TFunction_Logbook)& theLog) const { Handle(TFunction_Function) aFunction; diff --git a/src/Draw/TKQADraw/QABugs/QABugs_11.cxx b/src/Draw/TKQADraw/QABugs/QABugs_11.cxx index 3b078e69d5..6ffee92f79 100644 --- a/src/Draw/TKQADraw/QABugs/QABugs_11.cxx +++ b/src/Draw/TKQADraw/QABugs/QABugs_11.cxx @@ -913,10 +913,8 @@ static Standard_Integer OCC277bug(Draw_Interpretor& di, Standard_Integer nb, con #include #include -//------------------------------------------------------------------------------------------ -// name : OCC363 -// Purpose : -//------------------------------------------------------------------------------------------ +//================================================================================================= + static Standard_Integer OCC363(Draw_Interpretor& di, Standard_Integer argc, const char** argv) { try diff --git a/src/Draw/TKTopTest/BRepTest/BRepTest_SurfaceCommands.cxx b/src/Draw/TKTopTest/BRepTest/BRepTest_SurfaceCommands.cxx index b92daf62d5..78cd7bd259 100644 --- a/src/Draw/TKTopTest/BRepTest/BRepTest_SurfaceCommands.cxx +++ b/src/Draw/TKTopTest/BRepTest/BRepTest_SurfaceCommands.cxx @@ -43,9 +43,8 @@ #include #include -//----------------------------------------------------------------------- -// suppressarg : suppress a[d],modifie na-- -//----------------------------------------------------------------------- +//================================================================================================= + static void suppressarg(Standard_Integer& na, const char** a, const Standard_Integer d) { for (Standard_Integer i = d; i < na; i++) diff --git a/src/Draw/TKXDEDRAW/XDEDRAW/XDEDRAW_Notes.cxx b/src/Draw/TKXDEDRAW/XDEDRAW/XDEDRAW_Notes.cxx index 935a4cdeaa..35c9458fcc 100644 --- a/src/Draw/TKXDEDRAW/XDEDRAW/XDEDRAW_Notes.cxx +++ b/src/Draw/TKXDEDRAW/XDEDRAW/XDEDRAW_Notes.cxx @@ -1138,10 +1138,8 @@ static Standard_Integer noteUsername(Draw_Interpretor& di, Standard_Integer argc return 0; } -//======================================================================= -// function : noteTimestamp -// purpose : gets a note timestamp -//======================================================================= +//================================================================================================= + static const cmd XNoteTimestamp = {"XNoteTimestamp", 3, "XNoteTimestamp Doc note"}; static Standard_Integer noteTimestamp(Draw_Interpretor& di, diff --git a/src/FoundationClasses/TKMath/BSplCLib/BSplCLib_CurveComputation.gxx b/src/FoundationClasses/TKMath/BSplCLib/BSplCLib_CurveComputation.gxx index c16de5d654..874b17461f 100644 --- a/src/FoundationClasses/TKMath/BSplCLib/BSplCLib_CurveComputation.gxx +++ b/src/FoundationClasses/TKMath/BSplCLib/BSplCLib_CurveComputation.gxx @@ -358,9 +358,8 @@ void BSplCLib::Trimming(const Standard_Integer Degree, PLib::GetPoles(newpoles, NewPoles); } -//-------------------------------------------------------------------------- -// ELEMENTARY COMPUTATIONS -//-------------------------------------------------------------------------- +//================================================================================================= + // // All the following methods are methods of low level used in BSplCLib // but also in BSplSLib (but not in Geom) diff --git a/src/FoundationClasses/TKernel/NCollection/NCollection_BaseAllocator.cxx b/src/FoundationClasses/TKernel/NCollection/NCollection_BaseAllocator.cxx index 550bcd30a1..6465055170 100644 --- a/src/FoundationClasses/TKernel/NCollection/NCollection_BaseAllocator.cxx +++ b/src/FoundationClasses/TKernel/NCollection/NCollection_BaseAllocator.cxx @@ -29,10 +29,8 @@ void* NCollection_BaseAllocator::AllocateOptimal(const size_t theSize) return Standard::AllocateOptimal(theSize); } -//======================================================================= -// function : Free -// purpose : Standard deallocation -//======================================================================= +//================================================================================================= + void NCollection_BaseAllocator::Free(void* theAddress) { Standard::Free(theAddress); diff --git a/src/FoundationClasses/TKernel/NCollection/NCollection_BaseSequence.cxx b/src/FoundationClasses/TKernel/NCollection/NCollection_BaseSequence.cxx index cdae9ca4dc..e7d0413247 100644 --- a/src/FoundationClasses/TKernel/NCollection/NCollection_BaseSequence.cxx +++ b/src/FoundationClasses/TKernel/NCollection/NCollection_BaseSequence.cxx @@ -396,10 +396,7 @@ void NCollection_BaseSequence::RemoveSeq(const Standard_Integer theIndex, fDel(p, myAllocator); } -//======================================================================= -// function : Remove -// purpose : remove a set of items -//======================================================================= +//================================================================================================= void NCollection_BaseSequence::RemoveSeq(const Standard_Integer From, const Standard_Integer To, diff --git a/src/FoundationClasses/TKernel/OSD/OSD_Environment.cxx b/src/FoundationClasses/TKernel/OSD/OSD_Environment.cxx index 46119e5672..629f2d2f85 100644 --- a/src/FoundationClasses/TKernel/OSD/OSD_Environment.cxx +++ b/src/FoundationClasses/TKernel/OSD/OSD_Environment.cxx @@ -43,9 +43,7 @@ static const OSD_WhoAmI Iam = OSD_WEnvironment; OSD_Environment::OSD_Environment() {} -// ---------------------------------------------------------------------- -// Constructor -// ---------------------------------------------------------------------- +//================================================================================================= OSD_Environment::OSD_Environment(const TCollection_AsciiString& Name) { @@ -56,9 +54,7 @@ OSD_Environment::OSD_Environment(const TCollection_AsciiString& Name) myName = Name; } -// ---------------------------------------------------------------------- -// Create an environment variable and initialize it -// ---------------------------------------------------------------------- +//================================================================================================= OSD_Environment::OSD_Environment(const TCollection_AsciiString& Name, const TCollection_AsciiString& Value) @@ -73,18 +69,14 @@ OSD_Environment::OSD_Environment(const TCollection_AsciiString& Name, myValue = Value; } -// ---------------------------------------------------------------------- -// Returns the name of the symbol -// ---------------------------------------------------------------------- +//================================================================================================= TCollection_AsciiString OSD_Environment::Name() const { return myName; } -// ---------------------------------------------------------------------- -// Set new value for environment variable -// ---------------------------------------------------------------------- +//================================================================================================= void OSD_Environment::SetName(const TCollection_AsciiString& Name) { @@ -95,9 +87,7 @@ void OSD_Environment::SetName(const TCollection_AsciiString& Name) myName = Name; } -// ---------------------------------------------------------------------- -// Change value -// ---------------------------------------------------------------------- +//================================================================================================= void OSD_Environment::SetValue(const TCollection_AsciiString& Value) { @@ -107,9 +97,7 @@ void OSD_Environment::SetValue(const TCollection_AsciiString& Value) myValue = Value; } -// ---------------------------------------------------------------------- -// Get environment variable physically -// ---------------------------------------------------------------------- +//================================================================================================= TCollection_AsciiString OSD_Environment::Value() { @@ -121,9 +109,7 @@ TCollection_AsciiString OSD_Environment::Value() return myValue; } -// ---------------------------------------------------------------------- -// Sets physically the environment variable -// ---------------------------------------------------------------------- +//================================================================================================= void OSD_Environment::Build() { @@ -186,9 +172,7 @@ void OSD_Environment::Build() myError.SetValue(errno, Iam, "Set Environment"); } -// ---------------------------------------------------------------------- -// Remove physically the environment variable -// ---------------------------------------------------------------------- +//================================================================================================= void OSD_Environment::Remove() { diff --git a/src/FoundationClasses/TKernel/OSD/OSD_SharedLibrary.cxx b/src/FoundationClasses/TKernel/OSD/OSD_SharedLibrary.cxx index de1f373bf5..5a7f73d2fe 100644 --- a/src/FoundationClasses/TKernel/OSD/OSD_SharedLibrary.cxx +++ b/src/FoundationClasses/TKernel/OSD/OSD_SharedLibrary.cxx @@ -199,9 +199,8 @@ Standard_CString OSD_SharedLibrary::DlError() const return (char*)dlerror(); } -// ---------------------------------------------------------------------------- -// Destroy -// ---------------------------------------------------------------------------- +//================================================================================================= + void OSD_SharedLibrary::Destroy() { if (myName != NULL) diff --git a/src/FoundationClasses/TKernel/TColStd/TColStd_PackedMapOfInteger.cxx b/src/FoundationClasses/TKernel/TColStd/TColStd_PackedMapOfInteger.cxx index 2f100d720d..bdb14a659c 100644 --- a/src/FoundationClasses/TKernel/TColStd/TColStd_PackedMapOfInteger.cxx +++ b/src/FoundationClasses/TKernel/TColStd/TColStd_PackedMapOfInteger.cxx @@ -834,10 +834,7 @@ Standard_Boolean TColStd_PackedMapOfInteger::Subtract(const TColStd_PackedMapOfI } } -//======================================================================= -// function : Difference -// purpose : Boolean operation XOR -//======================================================================= +//================================================================================================= void TColStd_PackedMapOfInteger::Difference(const TColStd_PackedMapOfInteger& theMap1, const TColStd_PackedMapOfInteger& theMap2) @@ -933,10 +930,7 @@ void TColStd_PackedMapOfInteger::Difference(const TColStd_PackedMapOfInteger& th } } -//======================================================================= -// function : Differ -// purpose : Boolean operation XOR -//======================================================================= +//================================================================================================= Standard_Boolean TColStd_PackedMapOfInteger::Differ(const TColStd_PackedMapOfInteger& theMap) { diff --git a/src/FoundationClasses/TKernel/TCollection/TCollection_AsciiString.cxx b/src/FoundationClasses/TKernel/TCollection/TCollection_AsciiString.cxx index 6c8f9b2c32..f9670b9a7f 100644 --- a/src/FoundationClasses/TKernel/TCollection/TCollection_AsciiString.cxx +++ b/src/FoundationClasses/TKernel/TCollection/TCollection_AsciiString.cxx @@ -40,17 +40,15 @@ inline Standard_Size calculatePaddedSize(const int theLength) } } // namespace -// ---------------------------------------------------------------------------- -// Create an empty AsciiString -// ---------------------------------------------------------------------------- +//================================================================================================= + TCollection_AsciiString::TCollection_AsciiString() { allocate(0); } -// ---------------------------------------------------------------------------- -// Create an asciistring from a Standard_CString -// ---------------------------------------------------------------------------- +//================================================================================================= + TCollection_AsciiString::TCollection_AsciiString(const Standard_CString theString) { if (theString == NULL) @@ -61,9 +59,8 @@ TCollection_AsciiString::TCollection_AsciiString(const Standard_CString theStrin memcpy(mystring, theString, mylength); } -// ---------------------------------------------------------------------------- -// Create an asciistring from a Standard_CString -// ---------------------------------------------------------------------------- +//================================================================================================= + TCollection_AsciiString::TCollection_AsciiString(const Standard_CString theString, const Standard_Integer theLen) { @@ -79,9 +76,8 @@ TCollection_AsciiString::TCollection_AsciiString(const Standard_CString theStrin memcpy(mystring, theString, mylength); } -// ---------------------------------------------------------------------------- -// Create an asciistring from a Standard_Character -// ---------------------------------------------------------------------------- +//================================================================================================= + TCollection_AsciiString::TCollection_AsciiString(const Standard_Character aChar) { if (aChar != '\0') @@ -95,9 +91,8 @@ TCollection_AsciiString::TCollection_AsciiString(const Standard_Character aChar) } } -// ---------------------------------------------------------------------------- -// Create an AsciiString from a filler -// ---------------------------------------------------------------------------- +//================================================================================================= + TCollection_AsciiString::TCollection_AsciiString(const Standard_Integer length, const Standard_Character filler) { @@ -105,9 +100,8 @@ TCollection_AsciiString::TCollection_AsciiString(const Standard_Integer length memset(mystring, filler, length); } -// ---------------------------------------------------------------------------- -// Create an AsciiString from an Integer -// ---------------------------------------------------------------------------- +//================================================================================================= + TCollection_AsciiString::TCollection_AsciiString(const Standard_Integer aValue) { char t[13]; @@ -115,9 +109,8 @@ TCollection_AsciiString::TCollection_AsciiString(const Standard_Integer aValue) memcpy(mystring, t, mylength); } -// ---------------------------------------------------------------------------- -// Create an asciistring from a real -// ---------------------------------------------------------------------------- +//================================================================================================= + TCollection_AsciiString::TCollection_AsciiString(const Standard_Real aValue) { char t[50]; @@ -125,9 +118,8 @@ TCollection_AsciiString::TCollection_AsciiString(const Standard_Real aValue) memcpy(mystring, t, mylength); } -// ---------------------------------------------------------------------------- -// Create an asciistring from an asciistring -// ---------------------------------------------------------------------------- +//================================================================================================= + TCollection_AsciiString::TCollection_AsciiString(const TCollection_AsciiString& theString) { allocate(theString.mylength); @@ -155,9 +147,8 @@ TCollection_AsciiString::TCollection_AsciiString(TCollection_AsciiString&& theOt theOther.mystring = THE_DEFAULT_CHAR_STRING; } -// ---------------------------------------------------------------------------- -// Create an asciistring from a character -// ---------------------------------------------------------------------------- +//================================================================================================= + TCollection_AsciiString::TCollection_AsciiString(const TCollection_AsciiString& theString, const Standard_Character theChar) { @@ -169,9 +160,8 @@ TCollection_AsciiString::TCollection_AsciiString(const TCollection_AsciiString& mystring[mylength - 1] = theChar; } -// ---------------------------------------------------------------------------- -// Create an asciistring from an asciistring -// ---------------------------------------------------------------------------- +//================================================================================================= + TCollection_AsciiString::TCollection_AsciiString(const TCollection_AsciiString& theString1, const Standard_CString theString2) { @@ -187,9 +177,8 @@ TCollection_AsciiString::TCollection_AsciiString(const TCollection_AsciiString& } } -// ---------------------------------------------------------------------------- -// Create an asciistring from an asciistring -// ---------------------------------------------------------------------------- +//================================================================================================= + TCollection_AsciiString::TCollection_AsciiString(const TCollection_AsciiString& theString1, const TCollection_AsciiString& theString2) { @@ -204,9 +193,8 @@ TCollection_AsciiString::TCollection_AsciiString(const TCollection_AsciiString& } } -//--------------------------------------------------------------------------- -// Create an asciistring from an ExtendedString -//--------------------------------------------------------------------------- +//================================================================================================= + TCollection_AsciiString::TCollection_AsciiString(const TCollection_ExtendedString& astring, const Standard_Character replaceNonAscii) { @@ -228,9 +216,8 @@ TCollection_AsciiString::TCollection_AsciiString(const TCollection_ExtendedStrin } } -//--------------------------------------------------------------------------- -// Create an TCollection_AsciiString from a Standard_WideChar -//--------------------------------------------------------------------------- +//================================================================================================= + TCollection_AsciiString::TCollection_AsciiString(const Standard_WideChar* theStringUtf) { int aLength = 0; @@ -246,27 +233,24 @@ TCollection_AsciiString::TCollection_AsciiString(const Standard_WideChar* theStr } } -// ---------------------------------------------------------------------------- -// AssignCat -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_AsciiString::AssignCat(const Standard_Integer other) { AssignCat(TCollection_AsciiString(other)); } -// ---------------------------------------------------------------------------- -// AssignCat -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_AsciiString::AssignCat(const Standard_Real other) { AssignCat(TCollection_AsciiString(other)); } -// ---------------------------------------------------------------------------- -// AssignCat -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_AsciiString::AssignCat(const Standard_Character other) { if (other != '\0') @@ -276,9 +260,8 @@ void TCollection_AsciiString::AssignCat(const Standard_Character other) } } -// ---------------------------------------------------------------------------- -// AssignCat -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_AsciiString::AssignCat(const Standard_CString theOther) { if (theOther == NULL) @@ -295,9 +278,8 @@ void TCollection_AsciiString::AssignCat(const Standard_CString theOther) } } -// ---------------------------------------------------------------------------- -// AssignCat -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_AsciiString::AssignCat(const TCollection_AsciiString& theOther) { if (theOther.mylength != 0) @@ -308,9 +290,8 @@ void TCollection_AsciiString::AssignCat(const TCollection_AsciiString& theOther) } } -// --------------------------------------------------------------------------- -// Capitalize -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_AsciiString::Capitalize() { if (mylength) @@ -319,9 +300,8 @@ void TCollection_AsciiString::Capitalize() mystring[i] = ::LowerCase(mystring[i]); } -// --------------------------------------------------------------------------- -// Center -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_AsciiString::Center(const Standard_Integer Width, const Standard_Character Filler) { if (Width > mylength) @@ -336,9 +316,8 @@ void TCollection_AsciiString::Center(const Standard_Integer Width, const Standar } } -// ---------------------------------------------------------------------------- -// ChangeAll -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_AsciiString::ChangeAll(const Standard_Character aChar, const Standard_Character NewChar, const Standard_Boolean CaseSensitive) @@ -358,17 +337,15 @@ void TCollection_AsciiString::ChangeAll(const Standard_Character aChar, } } -// ---------------------------------------------------------------------------- -// Clear -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_AsciiString::Clear() { deallocate(); } -// ---------------------------------------------------------------------------- -// Copy -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_AsciiString::Copy(const Standard_CString fromwhere) { if (fromwhere == mystring) @@ -387,9 +364,8 @@ void TCollection_AsciiString::Copy(const Standard_CString fromwhere) } } -// ---------------------------------------------------------------------------- -// Copy -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_AsciiString::Copy(const TCollection_AsciiString& fromwhere) { if (&fromwhere == this) @@ -426,9 +402,8 @@ void TCollection_AsciiString::Move(TCollection_AsciiString&& theOther) theOther.mylength = 0; } -// ---------------------------------------------------------------------------- -// Swap -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_AsciiString::Swap(TCollection_AsciiString& theOther) { if (&theOther == this) @@ -439,17 +414,15 @@ void TCollection_AsciiString::Swap(TCollection_AsciiString& theOther) std::swap(mylength, theOther.mylength); } -// ---------------------------------------------------------------------------- -// Destroy -// ---------------------------------------------------------------------------- +//================================================================================================= + TCollection_AsciiString::~TCollection_AsciiString() { deallocate(); } -// ---------------------------------------------------------------------------- -// FirstLocationInSet -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Integer TCollection_AsciiString::FirstLocationInSet(const TCollection_AsciiString& Set, const Standard_Integer FromIndex, const Standard_Integer ToIndex) const @@ -467,9 +440,8 @@ Standard_Integer TCollection_AsciiString::FirstLocationInSet(const TCollection_A throw Standard_OutOfRange(); } -// ---------------------------------------------------------------------------- -// FirstLocationNotInSet -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Integer TCollection_AsciiString::FirstLocationNotInSet( const TCollection_AsciiString& Set, const Standard_Integer FromIndex, @@ -494,9 +466,8 @@ Standard_Integer TCollection_AsciiString::FirstLocationNotInSet( throw Standard_OutOfRange(); } -//---------------------------------------------------------------------------- -// Insert a character before 'where'th character -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_AsciiString::Insert(const Standard_Integer where, const Standard_Character what) { if (where > mylength + 1) @@ -514,9 +485,8 @@ void TCollection_AsciiString::Insert(const Standard_Integer where, const Standar mystring[where - 1] = what; } -// ---------------------------------------------------------------------------- -// Insert -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_AsciiString::Insert(const Standard_Integer where, const Standard_CString what) { if (where <= mylength + 1 && where > 0) @@ -542,9 +512,8 @@ void TCollection_AsciiString::Insert(const Standard_Integer where, const Standar } } -// ---------------------------------------------------------------------------- -// Insert -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_AsciiString::Insert(const Standard_Integer where, const TCollection_AsciiString& what) { @@ -573,9 +542,8 @@ void TCollection_AsciiString::Insert(const Standard_Integer where, } } -//------------------------------------------------------------------------ -// InsertAfter -//------------------------------------------------------------------------ +//================================================================================================= + void TCollection_AsciiString::InsertAfter(const Standard_Integer Index, const TCollection_AsciiString& what) { @@ -584,9 +552,8 @@ void TCollection_AsciiString::InsertAfter(const Standard_Integer Index, Insert(Index + 1, what); } -//------------------------------------------------------------------------ -// InsertBefore -//------------------------------------------------------------------------ +//================================================================================================= + void TCollection_AsciiString::InsertBefore(const Standard_Integer Index, const TCollection_AsciiString& what) { @@ -595,9 +562,8 @@ void TCollection_AsciiString::InsertBefore(const Standard_Integer Index, Insert(Index, what); } -// ---------------------------------------------------------------------------- -// IsEqual -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Boolean TCollection_AsciiString::IsEqual(const Standard_CString other) const { if (other) @@ -608,9 +574,8 @@ Standard_Boolean TCollection_AsciiString::IsEqual(const Standard_CString other) "Parameter 'other'"); } -// ---------------------------------------------------------------------------- -// IsEqual -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Boolean TCollection_AsciiString::IsEqual(const TCollection_AsciiString& other) const { if (mylength != other.mylength) @@ -618,9 +583,8 @@ Standard_Boolean TCollection_AsciiString::IsEqual(const TCollection_AsciiString& return (strncmp(other.mystring, mystring, mylength) == 0); } -// ---------------------------------------------------------------------------- -// IsSameString -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Boolean TCollection_AsciiString::IsSameString(const TCollection_AsciiString& theString1, const TCollection_AsciiString& theString2, const Standard_Boolean theIsCaseSensitive) @@ -646,9 +610,8 @@ Standard_Boolean TCollection_AsciiString::IsSameString(const TCollection_AsciiSt return Standard_True; } -// ---------------------------------------------------------------------------- -// IsDifferent -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Boolean TCollection_AsciiString::IsDifferent(const Standard_CString other) const { if (other) @@ -659,9 +622,8 @@ Standard_Boolean TCollection_AsciiString::IsDifferent(const Standard_CString oth "Parameter 'other'"); } -// ---------------------------------------------------------------------------- -// IsDifferent -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Boolean TCollection_AsciiString::IsDifferent(const TCollection_AsciiString& other) const { @@ -670,9 +632,8 @@ Standard_Boolean TCollection_AsciiString::IsDifferent(const TCollection_AsciiStr return (strncmp(other.mystring, mystring, mylength) != 0); } -// ---------------------------------------------------------------------------- -// IsLess -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Boolean TCollection_AsciiString::IsLess(const Standard_CString other) const { if (other) @@ -683,17 +644,15 @@ Standard_Boolean TCollection_AsciiString::IsLess(const Standard_CString other) c "Parameter 'other'"); } -// ---------------------------------------------------------------------------- -// IsLess -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Boolean TCollection_AsciiString::IsLess(const TCollection_AsciiString& other) const { return (strncmp(mystring, other.mystring, mylength + 1) < 0); } -// ---------------------------------------------------------------------------- -// IsGreater -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Boolean TCollection_AsciiString::IsGreater(const Standard_CString other) const { if (other) @@ -704,17 +663,15 @@ Standard_Boolean TCollection_AsciiString::IsGreater(const Standard_CString other "Parameter 'other'"); } -// ---------------------------------------------------------------------------- -// IsGreater -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Boolean TCollection_AsciiString::IsGreater(const TCollection_AsciiString& other) const { return (strncmp(mystring, other.mystring, mylength + 1) > 0); } -// ---------------------------------------------------------------------------- -// StartsWith -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Boolean TCollection_AsciiString::StartsWith( const TCollection_AsciiString& theStartString) const { @@ -727,9 +684,8 @@ Standard_Boolean TCollection_AsciiString::StartsWith( && strncmp(theStartString.mystring, mystring, theStartString.mylength) == 0; } -// ---------------------------------------------------------------------------- -// EndsWith -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Boolean TCollection_AsciiString::EndsWith( const TCollection_AsciiString& theEndString) const { @@ -745,9 +701,8 @@ Standard_Boolean TCollection_AsciiString::EndsWith( == 0; } -// ---------------------------------------------------------------------------- -// IntegerValue -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Integer TCollection_AsciiString::IntegerValue() const { char* ptr; @@ -758,9 +713,8 @@ Standard_Integer TCollection_AsciiString::IntegerValue() const throw Standard_NumericError("TCollection_AsciiString::IntegerValue"); } -// ---------------------------------------------------------------------------- -// IsIntegerValue -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Boolean TCollection_AsciiString::IsIntegerValue() const { char* ptr; @@ -778,9 +732,8 @@ Standard_Boolean TCollection_AsciiString::IsIntegerValue() const return Standard_False; } -// ---------------------------------------------------------------------------- -// IsRealValue -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Boolean TCollection_AsciiString::IsRealValue(Standard_Boolean theToCheckFull) const { char* ptr; @@ -795,9 +748,8 @@ Standard_Boolean TCollection_AsciiString::IsRealValue(Standard_Boolean theToChec } } -// ---------------------------------------------------------------------------- -// IsAscii -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Boolean TCollection_AsciiString::IsAscii() const { // LD : Debuggee le 26/11/98 @@ -808,9 +760,8 @@ Standard_Boolean TCollection_AsciiString::IsAscii() const return Standard_True; } -//------------------------------------------------------------------------ -// LeftAdjust -//------------------------------------------------------------------------ +//================================================================================================= + void TCollection_AsciiString::LeftAdjust() { Standard_Integer i; @@ -821,9 +772,8 @@ void TCollection_AsciiString::LeftAdjust() Remove(1, i); } -//------------------------------------------------------------------------ -// LeftJustify -//------------------------------------------------------------------------ +//================================================================================================= + void TCollection_AsciiString::LeftJustify(const Standard_Integer Width, const Standard_Character Filler) { @@ -840,9 +790,8 @@ void TCollection_AsciiString::LeftJustify(const Standard_Integer Width, } } -//------------------------------------------------------------------------ -// Location -//------------------------------------------------------------------------ +//================================================================================================= + Standard_Integer TCollection_AsciiString::Location(const Standard_Integer N, const Standard_Character C, const Standard_Integer FromIndex, @@ -864,9 +813,8 @@ Standard_Integer TCollection_AsciiString::Location(const Standard_Integer N, throw Standard_OutOfRange(); } -//------------------------------------------------------------------------ -// Location -//------------------------------------------------------------------------ +//================================================================================================= + Standard_Integer TCollection_AsciiString::Location(const TCollection_AsciiString& what, const Standard_Integer FromIndex, const Standard_Integer ToIndex) const @@ -904,26 +852,23 @@ Standard_Integer TCollection_AsciiString::Location(const TCollection_AsciiString throw Standard_OutOfRange(); } -// ---------------------------------------------------------------------------- -// LowerCase -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_AsciiString::LowerCase() { for (int i = 0; i < mylength; i++) mystring[i] = ::LowerCase(mystring[i]); } -//------------------------------------------------------------------------ -// Prepend -//------------------------------------------------------------------------ +//================================================================================================= + void TCollection_AsciiString::Prepend(const TCollection_AsciiString& what) { Insert(1, what); } -// ---------------------------------------------------------------------------- -// RealValue -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Real TCollection_AsciiString::RealValue() const { char* ptr; @@ -934,9 +879,8 @@ Standard_Real TCollection_AsciiString::RealValue() const throw Standard_NumericError("TCollection_AsciiString::RealValue"); } -// ---------------------------------------------------------------------------- -// Read -//-------------------------------------------------------------------------- +//================================================================================================= + void TCollection_AsciiString::Read(Standard_IStream& astream) { // get characters from astream @@ -958,9 +902,8 @@ Standard_IStream& operator>>(Standard_IStream& astream, TCollection_AsciiString& return astream; } -// ---------------------------------------------------------------------------- -// Print -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_AsciiString::Print(Standard_OStream& astream) const { if (mystring) @@ -974,9 +917,8 @@ Standard_OStream& operator<<(Standard_OStream& astream, const TCollection_AsciiS return astream; } -// ---------------------------------------------------------------------------- -// RemoveAll -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_AsciiString::RemoveAll(const Standard_Character what, const Standard_Boolean CaseSensitive) { @@ -998,17 +940,15 @@ void TCollection_AsciiString::RemoveAll(const Standard_Character what, mystring[mylength] = '\0'; } -// ---------------------------------------------------------------------------- -// RemoveAll -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_AsciiString::RemoveAll(const Standard_Character what) { RemoveAll(what, Standard_True); } -// ---------------------------------------------------------------------------- -// Remove -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_AsciiString::Remove(const Standard_Integer where, const Standard_Integer ahowmany) { if (where + ahowmany <= mylength + 1) @@ -1027,9 +967,8 @@ void TCollection_AsciiString::Remove(const Standard_Integer where, const Standar } } -//------------------------------------------------------------------------ -// RightAdjust -//------------------------------------------------------------------------ +//================================================================================================= + void TCollection_AsciiString::RightAdjust() { Standard_Integer i; @@ -1040,9 +979,8 @@ void TCollection_AsciiString::RightAdjust() Remove(i + 2, mylength - (i + 2) + 1); } -//------------------------------------------------------------------------ -// RightJustify -//------------------------------------------------------------------------ +//================================================================================================= + void TCollection_AsciiString::RightJustify(const Standard_Integer Width, const Standard_Character Filler) { @@ -1062,9 +1000,8 @@ void TCollection_AsciiString::RightJustify(const Standard_Integer Width, } } -// ---------------------------------------------------------------------------- -// Search -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Integer TCollection_AsciiString::Search(const Standard_CString what) const { Standard_Integer size = Standard_Integer(what ? strlen(what) : 0); @@ -1084,9 +1021,8 @@ Standard_Integer TCollection_AsciiString::Search(const Standard_CString what) co return -1; } -// ---------------------------------------------------------------------------- -// Search -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Integer TCollection_AsciiString::Search(const TCollection_AsciiString& what) const { Standard_Integer size = what.mylength; @@ -1107,9 +1043,8 @@ Standard_Integer TCollection_AsciiString::Search(const TCollection_AsciiString& return -1; } -// ---------------------------------------------------------------------------- -// SearchFromEnd -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Integer TCollection_AsciiString::SearchFromEnd(const Standard_CString what) const { Standard_Integer size = Standard_Integer(what ? strlen(what) : 0); @@ -1129,9 +1064,8 @@ Standard_Integer TCollection_AsciiString::SearchFromEnd(const Standard_CString w return -1; } -// ---------------------------------------------------------------------------- -// SearchFromEnd -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Integer TCollection_AsciiString::SearchFromEnd(const TCollection_AsciiString& what) const { int size = what.mylength; @@ -1152,9 +1086,8 @@ Standard_Integer TCollection_AsciiString::SearchFromEnd(const TCollection_AsciiS return -1; } -// ---------------------------------------------------------------------------- -// SetValue -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_AsciiString::SetValue(const Standard_Integer theWhere, const Standard_Character theWhat) { @@ -1169,9 +1102,8 @@ void TCollection_AsciiString::SetValue(const Standard_Integer theWhere, mystring[theWhere - 1] = theWhat; } -// ---------------------------------------------------------------------------- -// SetValue -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_AsciiString::SetValue(const Standard_Integer where, const Standard_CString what) { if (where > 0 && where <= mylength + 1) @@ -1192,9 +1124,8 @@ void TCollection_AsciiString::SetValue(const Standard_Integer where, const Stand } } -// ---------------------------------------------------------------------------- -// SetValue -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_AsciiString::SetValue(const Standard_Integer where, const TCollection_AsciiString& what) { @@ -1217,9 +1148,8 @@ void TCollection_AsciiString::SetValue(const Standard_Integer where, } } -// ---------------------------------------------------------------------------- -// Split -// ---------------------------------------------------------------------------- +//================================================================================================= + TCollection_AsciiString TCollection_AsciiString::Split(const Standard_Integer where) { if (where >= 0 && where <= mylength) @@ -1231,9 +1161,8 @@ TCollection_AsciiString TCollection_AsciiString::Split(const Standard_Integer wh throw Standard_OutOfRange("TCollection_AsciiString::Split index"); } -// ---------------------------------------------------------------------------- -// Token -// ---------------------------------------------------------------------------- +//================================================================================================= + TCollection_AsciiString TCollection_AsciiString::Token(const Standard_CString separators, const Standard_Integer whichone) const { @@ -1293,9 +1222,8 @@ TCollection_AsciiString TCollection_AsciiString::Token(const Standard_CString se return TCollection_AsciiString(&mystring[BeginIndex - 1], EndIndex - BeginIndex + 1); } -// ---------------------------------------------------------------------------- -// Trunc -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_AsciiString::Trunc(const Standard_Integer ahowmany) { if (ahowmany < 0 || ahowmany > mylength) @@ -1305,18 +1233,16 @@ void TCollection_AsciiString::Trunc(const Standard_Integer ahowmany) mystring[mylength] = '\0'; } -// ---------------------------------------------------------------------------- -// UpperCase -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_AsciiString::UpperCase() { for (int i = 0; i < mylength; i++) mystring[i] = ::UpperCase(mystring[i]); } -//------------------------------------------------------------------------ -// UsefullLength -//------------------------------------------------------------------------ +//================================================================================================= + Standard_Integer TCollection_AsciiString::UsefullLength() const { Standard_Integer i; @@ -1326,9 +1252,8 @@ Standard_Integer TCollection_AsciiString::UsefullLength() const return i + 1; } -// ---------------------------------------------------------------------------- -// Value -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Character TCollection_AsciiString::Value(const Standard_Integer where) const { if (where > 0 && where <= mylength) diff --git a/src/FoundationClasses/TKernel/TCollection/TCollection_AsciiString.lxx b/src/FoundationClasses/TKernel/TCollection/TCollection_AsciiString.lxx index d31e6b73ba..0eacfca289 100644 --- a/src/FoundationClasses/TKernel/TCollection/TCollection_AsciiString.lxx +++ b/src/FoundationClasses/TKernel/TCollection/TCollection_AsciiString.lxx @@ -28,18 +28,16 @@ struct hash }; } // namespace std -//------------------------------------------------------------------------ -// IsEqual -//------------------------------------------------------------------------ +//================================================================================================= + inline Standard_Boolean IsEqual(const TCollection_AsciiString& string1, const TCollection_AsciiString& string2) { return TCollection_AsciiString::IsEqual(string1, string2); } -// ---------------------------------------------------------------------------- -// ToCString -// ---------------------------------------------------------------------------- +//================================================================================================= + inline Standard_CString TCollection_AsciiString::ToCString() const { return mystring; @@ -90,27 +88,24 @@ inline size_t TCollection_AsciiString::HashCode() const return opencascade::hashBytes(mystring, mylength); } -//------------------------------------------------------------------------ -// IsEqual -//------------------------------------------------------------------------ +//================================================================================================= + inline Standard_Boolean TCollection_AsciiString::IsEqual(const TCollection_AsciiString& string1, const TCollection_AsciiString& string2) { return string1.IsEqual(string2); } -//------------------------------------------------------------------------ -// IsEqual -//------------------------------------------------------------------------ +//================================================================================================= + inline Standard_Boolean TCollection_AsciiString::IsEqual(const TCollection_AsciiString& string1, const Standard_CString string2) { return string1.IsEqual(string2); } -// ---------------------------------------------------------------------------- -// SubString -// ---------------------------------------------------------------------------- +//================================================================================================= + inline TCollection_AsciiString TCollection_AsciiString::SubString( const Standard_Integer FromIndex, const Standard_Integer ToIndex) const diff --git a/src/FoundationClasses/TKernel/TCollection/TCollection_ExtendedString.cxx b/src/FoundationClasses/TKernel/TCollection/TCollection_ExtendedString.cxx index 418a79f6ac..c2b8fbc1aa 100644 --- a/src/FoundationClasses/TKernel/TCollection/TCollection_ExtendedString.cxx +++ b/src/FoundationClasses/TKernel/TCollection/TCollection_ExtendedString.cxx @@ -91,17 +91,15 @@ inline Standard_ExtCharacter* Standard_UNUSED } // namespace -//----------------------------------------------------------------------------- -// Create an empty ExtendedString -// ---------------------------------------------------------------------------- +//================================================================================================= + TCollection_ExtendedString::TCollection_ExtendedString() { allocate(0); } -//---------------------------------------------------------------------------- -// Create an ExtendedString from a Standard_CString -//---------------------------------------------------------------------------- +//================================================================================================= + TCollection_ExtendedString::TCollection_ExtendedString(const Standard_CString theString, const Standard_Boolean isMultiByte) { @@ -130,9 +128,8 @@ TCollection_ExtendedString::TCollection_ExtendedString(const Standard_CString th } } -//--------------------------------------------------------------------------- -// Create an ExtendedString from an ExtString -//-------------------------------------------------------------------------- +//================================================================================================= + TCollection_ExtendedString::TCollection_ExtendedString(const Standard_ExtString theString) { if (theString == NULL) @@ -147,9 +144,8 @@ TCollection_ExtendedString::TCollection_ExtendedString(const Standard_ExtString memcpy(mystring, theString, mylength * sizeof(Standard_ExtCharacter)); } -// ---------------------------------------------------------------------------- -// TCollection_ExtendedString -// ---------------------------------------------------------------------------- +//================================================================================================= + TCollection_ExtendedString::TCollection_ExtendedString(const Standard_WideChar* theStringUtf) { if (theStringUtf == NULL) @@ -160,9 +156,8 @@ TCollection_ExtendedString::TCollection_ExtendedString(const Standard_WideChar* mystring = fromWideString(theStringUtf, mylength); } -// ---------------------------------------------------------------------------- -// Create an asciistring from a Standard_Character -// ---------------------------------------------------------------------------- +//================================================================================================= + TCollection_ExtendedString::TCollection_ExtendedString(const Standard_Character aChar) { if (aChar != '\0') @@ -176,18 +171,16 @@ TCollection_ExtendedString::TCollection_ExtendedString(const Standard_Character } } -//-------------------------------------------------------------------------- -// Create a string from a ExtCharacter -// ---------------------------------------------------------------------------- +//================================================================================================= + TCollection_ExtendedString::TCollection_ExtendedString(const Standard_ExtCharacter aChar) { allocate(1); mystring[0] = aChar; } -// ---------------------------------------------------------------------------- -// Create an AsciiString from a filler -// ---------------------------------------------------------------------------- +//================================================================================================= + TCollection_ExtendedString::TCollection_ExtendedString(const Standard_Integer length, const Standard_ExtCharacter filler) { @@ -196,9 +189,8 @@ TCollection_ExtendedString::TCollection_ExtendedString(const Standard_Integer mystring[i] = filler; } -// ---------------------------------------------------------------------------- -// Create a String from an Integer -// ---------------------------------------------------------------------------- +//================================================================================================= + TCollection_ExtendedString::TCollection_ExtendedString(const Standard_Integer aValue) { union { @@ -212,9 +204,8 @@ TCollection_ExtendedString::TCollection_ExtendedString(const Standard_Integer aV mystring[i] = ToExtCharacter(CHN.t[i]); } -// ---------------------------------------------------------------------------- -// Create a String from a real -// ---------------------------------------------------------------------------- +//================================================================================================= + TCollection_ExtendedString::TCollection_ExtendedString(const Standard_Real aValue) { union { @@ -228,9 +219,8 @@ TCollection_ExtendedString::TCollection_ExtendedString(const Standard_Real aValu mystring[i] = ToExtCharacter(CHN.t[i]); } -//----------------------------------------------------------------------------- -// create an extendedstring from an extendedstring -// ---------------------------------------------------------------------------- +//================================================================================================= + TCollection_ExtendedString::TCollection_ExtendedString(const TCollection_ExtendedString& theOther) { allocate(theOther.mylength); @@ -255,9 +245,8 @@ TCollection_ExtendedString::TCollection_ExtendedString( theOther.mylength = 0; } -//--------------------------------------------------------------------------- -// Create an extendedstring from an AsciiString -//--------------------------------------------------------------------------- +//================================================================================================= + TCollection_ExtendedString::TCollection_ExtendedString(const TCollection_AsciiString& theString, const Standard_Boolean isMultiByte) { @@ -274,9 +263,8 @@ TCollection_ExtendedString::TCollection_ExtendedString(const TCollection_AsciiSt } } -// ---------------------------------------------------------------------------- -// AssignCat -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_ExtendedString::AssignCat(const TCollection_ExtendedString& theOther) { if (theOther.mylength == 0) @@ -290,9 +278,8 @@ void TCollection_ExtendedString::AssignCat(const TCollection_ExtendedString& the memcpy(mystring + anOldLength, theOther.mystring, anOtherLength * sizeof(Standard_ExtCharacter)); } -// ---------------------------------------------------------------------------- -// AssignCat -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_ExtendedString::AssignCat(const Standard_Utf16Char theChar) { if (theChar != '\0') @@ -302,9 +289,8 @@ void TCollection_ExtendedString::AssignCat(const Standard_Utf16Char theChar) } } -// ---------------------------------------------------------------------------- -// Cat -// ---------------------------------------------------------------------------- +//================================================================================================= + TCollection_ExtendedString TCollection_ExtendedString::Cat( const TCollection_ExtendedString& other) const { @@ -316,9 +302,8 @@ TCollection_ExtendedString TCollection_ExtendedString::Cat( return res; } -// ---------------------------------------------------------------------------- -// ChangeAll -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_ExtendedString::ChangeAll(const Standard_ExtCharacter aChar, const Standard_ExtCharacter NewChar) { @@ -327,17 +312,15 @@ void TCollection_ExtendedString::ChangeAll(const Standard_ExtCharacter aChar, mystring[i] = NewChar; } -// ---------------------------------------------------------------------------- -// Clear -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_ExtendedString::Clear() { deallocate(); } -// ---------------------------------------------------------------------------- -// Copy -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_ExtendedString::Copy(const TCollection_ExtendedString& fromwhere) { if (&fromwhere == this) @@ -381,9 +364,8 @@ void TCollection_ExtendedString::Move(TCollection_ExtendedString&& theOther) theOther.mylength = 0; } -// ---------------------------------------------------------------------------- -// Swap -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_ExtendedString::Swap(TCollection_ExtendedString& theOther) { if (&theOther == this) @@ -394,17 +376,15 @@ void TCollection_ExtendedString::Swap(TCollection_ExtendedString& theOther) std::swap(mylength, theOther.mylength); } -// ---------------------------------------------------------------------------- -// Destroy -// ---------------------------------------------------------------------------- +//================================================================================================= + TCollection_ExtendedString::~TCollection_ExtendedString() { deallocate(); } -//---------------------------------------------------------------------------- -// Insert a character before 'where'th character -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_ExtendedString::Insert(const Standard_Integer where, const Standard_ExtCharacter what) { @@ -423,9 +403,8 @@ void TCollection_ExtendedString::Insert(const Standard_Integer where, mystring[where - 1] = what; } -// ---------------------------------------------------------------------------- -// Insert -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_ExtendedString::Insert(const Standard_Integer where, const TCollection_ExtendedString& what) { @@ -453,9 +432,8 @@ void TCollection_ExtendedString::Insert(const Standard_Integer where, } } -// ---------------------------------------------------------------------------- -// ExtStrCmp: strcmp for 16-bit chars -// ---------------------------------------------------------------------------- +//================================================================================================= + static int ExtStrCmp(const Standard_ExtString theStr1, const Standard_ExtString theStr2) { const Standard_ExtCharacter* aStr1 = theStr1; @@ -470,34 +448,30 @@ static int ExtStrCmp(const Standard_ExtString theStr1, const Standard_ExtString return *aStr1 - *aStr2; } -// ---------------------------------------------------------------------------- -// IsEqual -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Boolean TCollection_ExtendedString::IsEqual(const Standard_ExtString other) const { return ExtStrCmp(mystring, other) == 0; } -// ---------------------------------------------------------------------------- -// IsEqual -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Boolean TCollection_ExtendedString::IsEqual(const TCollection_ExtendedString& other) const { return mylength == other.mylength && memcmp(mystring, other.mystring, (mylength + 1) * sizeof(Standard_ExtCharacter)) == 0; } -// ---------------------------------------------------------------------------- -// IsDifferent -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Boolean TCollection_ExtendedString::IsDifferent(const Standard_ExtString other) const { return ExtStrCmp(mystring, other) != 0; } -// ---------------------------------------------------------------------------- -// IsDifferent -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Boolean TCollection_ExtendedString::IsDifferent( const TCollection_ExtendedString& other) const { @@ -505,42 +479,37 @@ Standard_Boolean TCollection_ExtendedString::IsDifferent( || memcmp(mystring, other.mystring, (mylength + 1) * sizeof(Standard_ExtCharacter)) != 0; } -// ---------------------------------------------------------------------------- -// IsLess -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Boolean TCollection_ExtendedString::IsLess(const Standard_ExtString other) const { return ExtStrCmp(mystring, other) < 0; } -// ---------------------------------------------------------------------------- -// IsLess -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Boolean TCollection_ExtendedString::IsLess(const TCollection_ExtendedString& other) const { return ExtStrCmp(mystring, other.mystring) < 0; } -// ---------------------------------------------------------------------------- -// IsGreater -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Boolean TCollection_ExtendedString::IsGreater(const Standard_ExtString other) const { return ExtStrCmp(mystring, other) > 0; } -// ---------------------------------------------------------------------------- -// IsGreater -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Boolean TCollection_ExtendedString::IsGreater( const TCollection_ExtendedString& other) const { return ExtStrCmp(mystring, other.mystring) > 0; } -// ---------------------------------------------------------------------------- -// StartsWith -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Boolean TCollection_ExtendedString::StartsWith( const TCollection_ExtendedString& theStartString) const { @@ -556,9 +525,8 @@ Standard_Boolean TCollection_ExtendedString::StartsWith( == 0; } -// ---------------------------------------------------------------------------- -// EndsWith -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Boolean TCollection_ExtendedString::EndsWith( const TCollection_ExtendedString& theEndString) const { @@ -574,9 +542,8 @@ Standard_Boolean TCollection_ExtendedString::EndsWith( == 0; } -// ---------------------------------------------------------------------------- -// IsAscii -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Boolean TCollection_ExtendedString::IsAscii() const { for (Standard_Integer i = 0; i < mylength; i++) @@ -585,17 +552,15 @@ Standard_Boolean TCollection_ExtendedString::IsAscii() const return Standard_True; } -//------------------------------------------------------------------------ -// Length -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Integer TCollection_ExtendedString::Length() const { return mylength; } -// ---------------------------------------------------------------------------- -// Print -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_ExtendedString::Print(Standard_OStream& theStream) const { if (mylength > 0) @@ -612,9 +577,8 @@ Standard_OStream& operator<<(Standard_OStream& astream, const TCollection_Extend return astream; } -// ---------------------------------------------------------------------------- -// RemoveAll -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_ExtendedString::RemoveAll(const Standard_ExtCharacter what) { @@ -628,9 +592,8 @@ void TCollection_ExtendedString::RemoveAll(const Standard_ExtCharacter what) mystring[mylength] = '\0'; } -// ---------------------------------------------------------------------------- -// Remove -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_ExtendedString::Remove(const Standard_Integer where, const Standard_Integer ahowmany) { @@ -648,9 +611,8 @@ void TCollection_ExtendedString::Remove(const Standard_Integer where, "invalid starting value."); } -// ---------------------------------------------------------------------------- -// Search -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Integer TCollection_ExtendedString::Search(const TCollection_ExtendedString& what) const { Standard_Integer size = what.mylength; @@ -674,9 +636,8 @@ Standard_Integer TCollection_ExtendedString::Search(const TCollection_ExtendedSt return -1; } -// ---------------------------------------------------------------------------- -// SearchFromEnd -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Integer TCollection_ExtendedString::SearchFromEnd( const TCollection_ExtendedString& what) const { @@ -701,9 +662,8 @@ Standard_Integer TCollection_ExtendedString::SearchFromEnd( return -1; } -// ---------------------------------------------------------------------------- -// SetValue -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_ExtendedString::SetValue(const Standard_Integer where, const Standard_ExtCharacter what) { @@ -717,9 +677,8 @@ void TCollection_ExtendedString::SetValue(const Standard_Integer where, } } -// ---------------------------------------------------------------------------- -// SetValue -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_ExtendedString::SetValue(const Standard_Integer where, const TCollection_ExtendedString& what) { @@ -740,9 +699,8 @@ void TCollection_ExtendedString::SetValue(const Standard_Integer wher "parameter where"); } -// ---------------------------------------------------------------------------- -// Split -// ---------------------------------------------------------------------------- +//================================================================================================= + TCollection_ExtendedString TCollection_ExtendedString::Split(const Standard_Integer where) { if (where >= 0 && where < mylength) @@ -754,9 +712,8 @@ TCollection_ExtendedString TCollection_ExtendedString::Split(const Standard_Inte throw Standard_OutOfRange("TCollection_ExtendedString::Split index"); } -// ---------------------------------------------------------------------------- -// Token -// ---------------------------------------------------------------------------- +//================================================================================================= + TCollection_ExtendedString TCollection_ExtendedString::Token(const Standard_ExtString separators, const Standard_Integer whichone) const { @@ -847,17 +804,15 @@ TCollection_ExtendedString TCollection_ExtendedString::Token(const Standard_ExtS return res; } -// ---------------------------------------------------------------------------- -// ToExtString -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_ExtString TCollection_ExtendedString::ToExtString() const { return mystring; } -// ---------------------------------------------------------------------------- -// Trunc -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_ExtendedString::Trunc(const Standard_Integer ahowmany) { if (ahowmany < 0 || ahowmany > mylength) @@ -867,9 +822,8 @@ void TCollection_ExtendedString::Trunc(const Standard_Integer ahowmany) mystring[mylength] = '\0'; } -// ---------------------------------------------------------------------------- -// Value -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_ExtCharacter TCollection_ExtendedString::Value(const Standard_Integer where) const { if (where > 0 && where <= mylength) @@ -883,9 +837,8 @@ Standard_ExtCharacter TCollection_ExtendedString::Value(const Standard_Integer w "parameter where"); } -//---------------------------------------------------------------------------- -// Convert CString (including multibyte case) to UniCode representation -//---------------------------------------------------------------------------- +//================================================================================================= + Standard_Boolean TCollection_ExtendedString::ConvertToUnicode(const Standard_CString theStringUtf) { NCollection_Utf8Iter anIterRead(theStringUtf); diff --git a/src/FoundationClasses/TKernel/TCollection/TCollection_HAsciiString.cxx b/src/FoundationClasses/TKernel/TCollection/TCollection_HAsciiString.cxx index a997f83cbb..2911c9d1eb 100644 --- a/src/FoundationClasses/TKernel/TCollection/TCollection_HAsciiString.cxx +++ b/src/FoundationClasses/TKernel/TCollection/TCollection_HAsciiString.cxx @@ -20,74 +20,65 @@ IMPLEMENT_STANDARD_RTTIEXT(TCollection_HAsciiString, Standard_Transient) -// ---------------------------------------------------------------------------- -// Create -// ---------------------------------------------------------------------------- +//================================================================================================= + TCollection_HAsciiString::TCollection_HAsciiString() : myString() { } -// ---------------------------------------------------------------------------- -// Create -// ---------------------------------------------------------------------------- +//================================================================================================= + TCollection_HAsciiString::TCollection_HAsciiString(const Standard_CString message) : myString(message) { } -// ---------------------------------------------------------------------------- -// Create -// ---------------------------------------------------------------------------- +//================================================================================================= + TCollection_HAsciiString::TCollection_HAsciiString(const TCollection_AsciiString& astring) : myString(astring) { } -// ---------------------------------------------------------------------------- -// Create -// ---------------------------------------------------------------------------- +//================================================================================================= + TCollection_HAsciiString::TCollection_HAsciiString(const Standard_Character aChar) : myString(aChar) { } -// ---------------------------------------------------------------------------- -// Create -// ---------------------------------------------------------------------------- +//================================================================================================= + TCollection_HAsciiString::TCollection_HAsciiString(const Standard_Integer length, const Standard_Character filler) : myString(length, filler) { } -// ---------------------------------------------------------------------------- -// Create -// ---------------------------------------------------------------------------- +//================================================================================================= + TCollection_HAsciiString::TCollection_HAsciiString(const Standard_Integer aValue) : myString(aValue) { } -// ---------------------------------------------------------------------------- -// Create -// ---------------------------------------------------------------------------- +//================================================================================================= + TCollection_HAsciiString::TCollection_HAsciiString(const Standard_Real aValue) : myString(aValue) { } -// ---------------------------------------------------------------------------- -// Create -// ---------------------------------------------------------------------------- +//================================================================================================= + TCollection_HAsciiString::TCollection_HAsciiString(const Handle(TCollection_HAsciiString)& astring) : myString(astring->String()) { } -// ---------------------------------------------------------------------------- -// Create -// ---------------------------------------------------------------------------- +//================================================================================================= + TCollection_HAsciiString::TCollection_HAsciiString( const Handle(TCollection_HExtendedString)& astring, const Standard_Character replaceNonAscii) @@ -95,34 +86,30 @@ TCollection_HAsciiString::TCollection_HAsciiString( { } -// --------------------------------------------------------------------------- -// Capitalize -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_HAsciiString::Capitalize() { myString.Capitalize(); } -// --------------------------------------------------------------------------- -// Cat -// ---------------------------------------------------------------------------- +//================================================================================================= + Handle(TCollection_HAsciiString) TCollection_HAsciiString::Cat(const Standard_CString other) const { return new TCollection_HAsciiString(myString.Cat(other)); } -// --------------------------------------------------------------------------- -// Cat -// ---------------------------------------------------------------------------- +//================================================================================================= + Handle(TCollection_HAsciiString) TCollection_HAsciiString::Cat( const Handle(TCollection_HAsciiString)& other) const { return new TCollection_HAsciiString(myString.Cat(other->String())); } -// --------------------------------------------------------------------------- -// Center -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_HAsciiString::Center(const Standard_Integer Width, const Standard_Character Filler) { if (Width < 0) @@ -130,9 +117,8 @@ void TCollection_HAsciiString::Center(const Standard_Integer Width, const Standa myString.Center(Width, Filler); } -// ---------------------------------------------------------------------------- -// ChangeAll -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_HAsciiString::ChangeAll(const Standard_Character aChar, const Standard_Character NewChar, const Standard_Boolean CaseSensitive) @@ -140,17 +126,15 @@ void TCollection_HAsciiString::ChangeAll(const Standard_Character aChar, myString.ChangeAll(aChar, NewChar, CaseSensitive); } -// ---------------------------------------------------------------------------- -// Clear -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_HAsciiString::Clear() { myString.Clear(); } -// ---------------------------------------------------------------------------- -// FirstLocationInSet -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Integer TCollection_HAsciiString::FirstLocationInSet( const Handle(TCollection_HAsciiString)& Set, const Standard_Integer FromIndex, @@ -163,9 +147,8 @@ Standard_Integer TCollection_HAsciiString::FirstLocationInSet( return (myString.FirstLocationInSet(Set->String(), FromIndex, ToIndex)); } -// ---------------------------------------------------------------------------- -// FirstLocationNotInSet -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Integer TCollection_HAsciiString::FirstLocationNotInSet( const Handle(TCollection_HAsciiString)& Set, const Standard_Integer FromIndex, @@ -178,34 +161,30 @@ Standard_Integer TCollection_HAsciiString::FirstLocationNotInSet( return (myString.FirstLocationNotInSet(Set->String(), FromIndex, ToIndex)); } -// ---------------------------------------------------------------------------- -// Insert a Standard_Character before 'where'th Standard_Character -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_HAsciiString::Insert(const Standard_Integer where, const Standard_Character what) { myString.Insert(where, what); } -// ---------------------------------------------------------------------------- -// Insert -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_HAsciiString::Insert(const Standard_Integer where, const Standard_CString what) { myString.Insert(where, what); } -// ---------------------------------------------------------------------------- -// Insert -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_HAsciiString::Insert(const Standard_Integer where, const Handle(TCollection_HAsciiString)& what) { myString.Insert(where, what->String()); } -//------------------------------------------------------------------------ -// InsertAfter -//------------------------------------------------------------------------ +//================================================================================================= + void TCollection_HAsciiString::InsertAfter(const Standard_Integer Index, const Handle(TCollection_HAsciiString)& S) { @@ -217,9 +196,8 @@ void TCollection_HAsciiString::InsertAfter(const Standard_Integer myString.InsertAfter(Index, S->String()); } -//------------------------------------------------------------------------ -// InsertBefore -//------------------------------------------------------------------------ +//================================================================================================= + void TCollection_HAsciiString::InsertBefore(const Standard_Integer Index, const Handle(TCollection_HAsciiString)& S) { @@ -231,67 +209,59 @@ void TCollection_HAsciiString::InsertBefore(const Standard_Integer myString.InsertBefore(Index, S->String()); } -// ---------------------------------------------------------------------------- -// IsEmpty -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Boolean TCollection_HAsciiString::IsEmpty() const { return (myString.Length() == 0); } -// ---------------------------------------------------------------------------- -// IsLess -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Boolean TCollection_HAsciiString::IsLess( const Handle(TCollection_HAsciiString)& other) const { return myString.IsLess(other->String()); } -// ---------------------------------------------------------------------------- -// IsGreater -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Boolean TCollection_HAsciiString::IsGreater( const Handle(TCollection_HAsciiString)& other) const { return myString.IsGreater(other->String()); } -// ---------------------------------------------------------------------------- -// IntegerValue -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Integer TCollection_HAsciiString::IntegerValue() const { return myString.IntegerValue(); } -// ---------------------------------------------------------------------------- -// IsIntegerValue -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Boolean TCollection_HAsciiString::IsIntegerValue() const { return myString.IsIntegerValue(); } -// ---------------------------------------------------------------------------- -// IsRealvalue -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Boolean TCollection_HAsciiString::IsRealValue() const { return myString.IsRealValue(); } -// ---------------------------------------------------------------------------- -// IsAscii -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Boolean TCollection_HAsciiString::IsAscii() const { return myString.IsAscii(); } -// ---------------------------------------------------------------------------- -// IsDifferent -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Boolean TCollection_HAsciiString::IsDifferent( const Handle(TCollection_HAsciiString)& S) const { @@ -302,9 +272,8 @@ Standard_Boolean TCollection_HAsciiString::IsDifferent( return (strncmp(myString.ToCString(), S->ToCString(), myString.Length()) != 0); } -// ---------------------------------------------------------------------------- -// IsSameString -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Boolean TCollection_HAsciiString::IsSameString( const Handle(TCollection_HAsciiString)& S) const { @@ -316,9 +285,8 @@ Standard_Boolean TCollection_HAsciiString::IsSameString( return Standard_False; } -// ---------------------------------------------------------------------------- -// IsSameString -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Boolean TCollection_HAsciiString::IsSameString(const Handle(TCollection_HAsciiString)& S, const Standard_Boolean CaseSensitive) const { @@ -327,17 +295,15 @@ Standard_Boolean TCollection_HAsciiString::IsSameString(const Handle(TCollection return TCollection_AsciiString::IsSameString(myString, S->myString, CaseSensitive); } -//------------------------------------------------------------------------ -// LeftAdjust -//------------------------------------------------------------------------ +//================================================================================================= + void TCollection_HAsciiString::LeftAdjust() { myString.LeftAdjust(); } -//------------------------------------------------------------------------ -// LeftJustify -//------------------------------------------------------------------------ +//================================================================================================= + void TCollection_HAsciiString::LeftJustify(const Standard_Integer Width, const Standard_Character Filler) { @@ -346,9 +312,8 @@ void TCollection_HAsciiString::LeftJustify(const Standard_Integer Width, myString.LeftJustify(Width, Filler); } -//------------------------------------------------------------------------ -// Location -//------------------------------------------------------------------------ +//================================================================================================= + Standard_Integer TCollection_HAsciiString::Location(const Standard_Integer N, const Standard_Character C, const Standard_Integer FromIndex, @@ -359,9 +324,8 @@ Standard_Integer TCollection_HAsciiString::Location(const Standard_Integer N, return myString.Location(N, C, FromIndex, ToIndex); } -//------------------------------------------------------------------------ -// Location -//------------------------------------------------------------------------ +//================================================================================================= + Standard_Integer TCollection_HAsciiString::Location(const Handle(TCollection_HAsciiString)& S, const Standard_Integer FromIndex, const Standard_Integer ToIndex) const @@ -373,17 +337,15 @@ Standard_Integer TCollection_HAsciiString::Location(const Handle(TCollection_HAs return myString.Location(S->String(), FromIndex, ToIndex); } -// ---------------------------------------------------------------------------- -// LowerCase -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_HAsciiString::LowerCase() { myString.LowerCase(); } -//------------------------------------------------------------------------ -// Prepend -//------------------------------------------------------------------------ +//================================================================================================= + void TCollection_HAsciiString::Prepend(const Handle(TCollection_HAsciiString)& S) { myString.Prepend(S->String()); @@ -397,50 +359,44 @@ void TCollection_HAsciiString::Print(Standard_OStream& S) const myString.Print(S); } -// ---------------------------------------------------------------------------- -// RealValue -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Real TCollection_HAsciiString::RealValue() const { return myString.RealValue(); } -// ---------------------------------------------------------------------------- -// RemoveAll -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_HAsciiString::RemoveAll(const Standard_Character what, const Standard_Boolean CaseSensitive) { myString.RemoveAll(what, CaseSensitive); } -// ---------------------------------------------------------------------------- -// RemoveAll -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_HAsciiString::RemoveAll(const Standard_Character what) { myString.RemoveAll(what); } -// ---------------------------------------------------------------------------- -// Remove -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_HAsciiString::Remove(const Standard_Integer where, const Standard_Integer ahowmany) { myString.Remove(where, ahowmany); } -//------------------------------------------------------------------------ -// RightAdjust -//------------------------------------------------------------------------ +//================================================================================================= + void TCollection_HAsciiString::RightAdjust() { myString.RightAdjust(); } -//------------------------------------------------------------------------ -// RightJustify -//------------------------------------------------------------------------ +//================================================================================================= + void TCollection_HAsciiString::RightJustify(const Standard_Integer Width, const Standard_Character Filler) { @@ -449,76 +405,67 @@ void TCollection_HAsciiString::RightJustify(const Standard_Integer Width, myString.RightJustify(Width, Filler); } -// ---------------------------------------------------------------------------- -// Search -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Integer TCollection_HAsciiString::Search(const Standard_CString what) const { return myString.Search(what); } -// ---------------------------------------------------------------------------- -// Search -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Integer TCollection_HAsciiString::Search( const Handle(TCollection_HAsciiString)& what) const { return myString.Search(what->String()); } -// ---------------------------------------------------------------------------- -// SearchFromEnd -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Integer TCollection_HAsciiString::SearchFromEnd(const Standard_CString what) const { return myString.SearchFromEnd(what); } -// ---------------------------------------------------------------------------- -// SearchFromEnd -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Integer TCollection_HAsciiString::SearchFromEnd( const Handle(TCollection_HAsciiString)& what) const { return myString.SearchFromEnd(what->String()); } -// ---------------------------------------------------------------------------- -// SetValue -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_HAsciiString::SetValue(const Standard_Integer where, const Standard_Character what) { myString.SetValue(where, what); } -// ---------------------------------------------------------------------------- -// SetValue -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_HAsciiString::SetValue(const Standard_Integer where, const Standard_CString what) { myString.SetValue(where, what); } -// ---------------------------------------------------------------------------- -// SetValue -// --------------------------------------------------------------------------- +//================================================================================================= + void TCollection_HAsciiString::SetValue(const Standard_Integer where, const Handle(TCollection_HAsciiString)& what) { myString.SetValue(where, what->String()); } -// ---------------------------------------------------------------------------- -// Split -// ---------------------------------------------------------------------------- +//================================================================================================= + Handle(TCollection_HAsciiString) TCollection_HAsciiString::Split(const Standard_Integer where) { return new TCollection_HAsciiString(myString.Split(where)); } -// ---------------------------------------------------------------------------- -// SubString -// ---------------------------------------------------------------------------- +//================================================================================================= + Handle(TCollection_HAsciiString) TCollection_HAsciiString::SubString( const Standard_Integer FromIndex, const Standard_Integer ToIndex) const @@ -526,9 +473,8 @@ Handle(TCollection_HAsciiString) TCollection_HAsciiString::SubString( return new TCollection_HAsciiString(myString.SubString(FromIndex, ToIndex)); } -// ---------------------------------------------------------------------------- -// Token -// ---------------------------------------------------------------------------- +//================================================================================================= + Handle(TCollection_HAsciiString) TCollection_HAsciiString::Token( const Standard_CString separators, const Standard_Integer whichone) const @@ -536,41 +482,36 @@ Handle(TCollection_HAsciiString) TCollection_HAsciiString::Token( return new TCollection_HAsciiString(myString.Token(separators, whichone)); } -// ---------------------------------------------------------------------------- -// Trunc -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_HAsciiString::Trunc(const Standard_Integer ahowmany) { myString.Trunc(ahowmany); } -// ---------------------------------------------------------------------------- -// UpperCase -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_HAsciiString::UpperCase() { myString.UpperCase(); } -// ---------------------------------------------------------------------------- -// UsefullLength -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Integer TCollection_HAsciiString::UsefullLength() const { return myString.UsefullLength(); } -// ---------------------------------------------------------------------------- -// Value -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Character TCollection_HAsciiString::Value(const Standard_Integer where) const { return myString.Value(where); } -// ---------------------------------------------------------------------------- -// IsSameState -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Boolean TCollection_HAsciiString::IsSameState( const Handle(TCollection_HAsciiString)& other) const { diff --git a/src/FoundationClasses/TKernel/TCollection/TCollection_HAsciiString.lxx b/src/FoundationClasses/TKernel/TCollection/TCollection_HAsciiString.lxx index 6c4d6446bd..6c46643409 100644 --- a/src/FoundationClasses/TKernel/TCollection/TCollection_HAsciiString.lxx +++ b/src/FoundationClasses/TKernel/TCollection/TCollection_HAsciiString.lxx @@ -12,33 +12,29 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -// --------------------------------------------------------------------------- -// AssignCat -// ---------------------------------------------------------------------------- +//================================================================================================= + inline void TCollection_HAsciiString::AssignCat(const Standard_CString other) { myString.AssignCat(other); } -// --------------------------------------------------------------------------- -// AssignCat -// ---------------------------------------------------------------------------- +//================================================================================================= + inline void TCollection_HAsciiString::AssignCat(const Handle(TCollection_HAsciiString)& other) { myString.AssignCat(other->String()); } -// ---------------------------------------------------------------------------- -// Length -// ---------------------------------------------------------------------------- +//================================================================================================= + inline Standard_Integer TCollection_HAsciiString::Length() const { return myString.mylength; } -// ---------------------------------------------------------------------------- -// String -// ---------------------------------------------------------------------------- +//================================================================================================= + inline const TCollection_AsciiString& TCollection_HAsciiString::String() const { return myString; diff --git a/src/FoundationClasses/TKernel/TCollection/TCollection_HExtendedString.cxx b/src/FoundationClasses/TKernel/TCollection/TCollection_HExtendedString.cxx index 22a289cdba..76af1ce2be 100644 --- a/src/FoundationClasses/TKernel/TCollection/TCollection_HExtendedString.cxx +++ b/src/FoundationClasses/TKernel/TCollection/TCollection_HExtendedString.cxx @@ -22,228 +22,201 @@ IMPLEMENT_STANDARD_RTTIEXT(TCollection_HExtendedString, Standard_Transient) -// ---------------------------------------------------------------------------- -// Create -// ---------------------------------------------------------------------------- +//================================================================================================= + TCollection_HExtendedString::TCollection_HExtendedString() {} -// ---------------------------------------------------------------------------- -// Create -// ---------------------------------------------------------------------------- +//================================================================================================= + TCollection_HExtendedString::TCollection_HExtendedString(const Standard_CString message) : myString(message) { } -// ---------------------------------------------------------------------------- -// Create -// ---------------------------------------------------------------------------- +//================================================================================================= + TCollection_HExtendedString::TCollection_HExtendedString(const Standard_ExtString message) : myString(message) { } -// ---------------------------------------------------------------------------- -// Create -// ---------------------------------------------------------------------------- +//================================================================================================= + TCollection_HExtendedString::TCollection_HExtendedString(const Standard_ExtCharacter aChar) : myString(aChar) { } -// ---------------------------------------------------------------------------- -// Create -// ---------------------------------------------------------------------------- +//================================================================================================= + TCollection_HExtendedString::TCollection_HExtendedString(const Standard_Integer length, const Standard_ExtCharacter filler) : myString(length, filler) { } -// ---------------------------------------------------------------------------- -// Create -// ---------------------------------------------------------------------------- +//================================================================================================= + TCollection_HExtendedString::TCollection_HExtendedString(const TCollection_ExtendedString& astring) : myString(astring) { } -// ---------------------------------------------------------------------------- -// Create -// ---------------------------------------------------------------------------- +//================================================================================================= + TCollection_HExtendedString::TCollection_HExtendedString( const Handle(TCollection_HAsciiString)& astring) : myString(astring->String()) { } -// ---------------------------------------------------------------------------- -// Create -// ---------------------------------------------------------------------------- +//================================================================================================= + TCollection_HExtendedString::TCollection_HExtendedString( const Handle(TCollection_HExtendedString)& astring) : myString(astring->ChangeString()) { } -// --------------------------------------------------------------------------- -// AssignCat -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_HExtendedString::AssignCat(const Handle(TCollection_HExtendedString)& other) { myString.AssignCat(other->ChangeString()); } -// --------------------------------------------------------------------------- -// Cat -// ---------------------------------------------------------------------------- +//================================================================================================= + Handle(TCollection_HExtendedString) TCollection_HExtendedString::Cat( const Handle(TCollection_HExtendedString)& other) const { return new TCollection_HExtendedString(myString.Cat(other->ChangeString())); } -// ---------------------------------------------------------------------------- -// ChangeAll -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_HExtendedString::ChangeAll(const Standard_ExtCharacter aChar, const Standard_ExtCharacter NewChar) { myString.ChangeAll(aChar, NewChar); } -// ---------------------------------------------------------------------------- -// IsEmpty -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Boolean TCollection_HExtendedString::IsEmpty() const { return (myString.Length() == 0); } -// ---------------------------------------------------------------------------- -// Clear -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_HExtendedString::Clear() { myString.Clear(); } -// ---------------------------------------------------------------------------- -// Insert a Standard_ExtCharacter before 'where'th Standard_ExtCharacter -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_HExtendedString::Insert(const Standard_Integer where, const Standard_ExtCharacter what) { myString.Insert(where, what); } -// ---------------------------------------------------------------------------- -// Insert -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_HExtendedString::Insert(const Standard_Integer where, const Handle(TCollection_HExtendedString)& what) { myString.Insert(where, what->ChangeString()); } -// ---------------------------------------------------------------------------- -// IsLess -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Boolean TCollection_HExtendedString::IsLess( const Handle(TCollection_HExtendedString)& other) const { return myString.IsLess(other->ChangeString()); } -// ---------------------------------------------------------------------------- -// IsGreater -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Boolean TCollection_HExtendedString::IsGreater( const Handle(TCollection_HExtendedString)& other) const { return myString.IsGreater(other->ChangeString()); } -// ---------------------------------------------------------------------------- -// IsAscii -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Boolean TCollection_HExtendedString::IsAscii() const { return myString.IsAscii(); } -// ---------------------------------------------------------------------------- -// Length -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Integer TCollection_HExtendedString::Length() const { return myString.Length(); } -// ---------------------------------------------------------------------------- -// Remove -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_HExtendedString::Remove(const Standard_Integer where, const Standard_Integer ahowmany) { myString.Remove(where, ahowmany); } -// ---------------------------------------------------------------------------- -// RemoveAll -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_HExtendedString::RemoveAll(const Standard_ExtCharacter what) { myString.RemoveAll(what); } -// ---------------------------------------------------------------------------- -// SetValue -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_HExtendedString::SetValue(const Standard_Integer where, const Standard_ExtCharacter what) { myString.SetValue(where, what); } -// ---------------------------------------------------------------------------- -// SetValue -// --------------------------------------------------------------------------- +//================================================================================================= + void TCollection_HExtendedString::SetValue(const Standard_Integer where, const Handle(TCollection_HExtendedString)& what) { myString.SetValue(where, what->ChangeString()); } -// ---------------------------------------------------------------------------- -// Split -// ---------------------------------------------------------------------------- +//================================================================================================= + Handle(TCollection_HExtendedString) TCollection_HExtendedString::Split(const Standard_Integer where) { return new TCollection_HExtendedString(myString.Split(where)); } -// ---------------------------------------------------------------------------- -// Search -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Integer TCollection_HExtendedString::Search( const Handle(TCollection_HExtendedString)& what) const { return myString.Search(what->ChangeString()); } -// ---------------------------------------------------------------------------- -// SearchFromEnd -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Integer TCollection_HExtendedString::SearchFromEnd( const Handle(TCollection_HExtendedString)& what) const { return myString.SearchFromEnd(what->ChangeString()); } -// ---------------------------------------------------------------------------- -// Token -// ---------------------------------------------------------------------------- +//================================================================================================= + Handle(TCollection_HExtendedString) TCollection_HExtendedString::Token( const Standard_ExtString separators, const Standard_Integer whichone) const @@ -251,25 +224,22 @@ Handle(TCollection_HExtendedString) TCollection_HExtendedString::Token( return new TCollection_HExtendedString(myString.Token(separators, whichone)); } -// ---------------------------------------------------------------------------- -// Trunc -// ---------------------------------------------------------------------------- +//================================================================================================= + void TCollection_HExtendedString::Trunc(const Standard_Integer ahowmany) { myString.Trunc(ahowmany); } -// ---------------------------------------------------------------------------- -// Value -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_ExtCharacter TCollection_HExtendedString::Value(const Standard_Integer where) const { return myString.Value(where); } -// ---------------------------------------------------------------------------- -// String -// ---------------------------------------------------------------------------- +//================================================================================================= + const TCollection_ExtendedString& TCollection_HExtendedString::String() const { return myString; @@ -284,9 +254,8 @@ void TCollection_HExtendedString::Print(Standard_OStream& S) const myString.Print(S); } -// ---------------------------------------------------------------------------- -// Issamestate -// ---------------------------------------------------------------------------- +//================================================================================================= + Standard_Boolean TCollection_HExtendedString::IsSameState( const Handle(TCollection_HExtendedString)& other) const { diff --git a/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_Draft.cxx b/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_Draft.cxx index 9f7f5736b4..0070f23b2c 100644 --- a/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_Draft.cxx +++ b/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_Draft.cxx @@ -423,10 +423,8 @@ void BRepFill_Draft::Perform(const TopoDS_Shape& StopShape, const Standard_Boole Sewing(); } -//======================================================================= -// function : Init -// purpose : Construction of laws. -//====================================================================== +//================================================================================================= + void BRepFill_Draft::Init(const Handle(Geom_Surface)&, const Standard_Real Length, const Bnd_Box& Box) diff --git a/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_PipeShell.cxx b/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_PipeShell.cxx index 42e5d7e215..b1766a1dd3 100644 --- a/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_PipeShell.cxx +++ b/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_PipeShell.cxx @@ -272,10 +272,8 @@ void BRepFill_PipeShell::SetDiscrete() mySection.Nullify(); // It is required to relocalize sections. } -//======================================================================= -// function : Set -// purpose : Define a law Constant -//======================================================================= +//================================================================================================= + void BRepFill_PipeShell::Set(const gp_Ax2& Axe) { myTrihedron = GeomFill_IsFixed; diff --git a/src/ModelingAlgorithms/TKBool/TopOpeBRep/TopOpeBRep_FFTransitionTool.cxx b/src/ModelingAlgorithms/TKBool/TopOpeBRep/TopOpeBRep_FFTransitionTool.cxx index 0281a411a0..9f150746ee 100644 --- a/src/ModelingAlgorithms/TKBool/TopOpeBRep/TopOpeBRep_FFTransitionTool.cxx +++ b/src/ModelingAlgorithms/TKBool/TopOpeBRep/TopOpeBRep_FFTransitionTool.cxx @@ -27,10 +27,7 @@ #include #include -//----------------------------------------------------------------------- -// function : TransitionToOrientation -// purpose : static -//----------------------------------------------------------------------- +//================================================================================================= static Standard_Boolean TransitionToOrientation(const IntSurf_Transition& T, TopAbs_Orientation& O) { diff --git a/src/ModelingAlgorithms/TKBool/TopOpeBRep/TopOpeBRep_ProcessGR.cxx b/src/ModelingAlgorithms/TKBool/TopOpeBRep/TopOpeBRep_ProcessGR.cxx index 247ee58202..cd5be7af6f 100644 --- a/src/ModelingAlgorithms/TKBool/TopOpeBRep/TopOpeBRep_ProcessGR.cxx +++ b/src/ModelingAlgorithms/TKBool/TopOpeBRep/TopOpeBRep_ProcessGR.cxx @@ -208,9 +208,7 @@ TopAbs_State TopOpeBRep_FacesFiller::StateVPonFace(const TopOpeBRep_VPointInter& return state; } -// ---------------------------------------------------------------------- -// Class methods -// ---------------------------------------------------------------------- +//================================================================================================= //======================================================================= // function : Lminmax diff --git a/src/ModelingAlgorithms/TKBool/TopOpeBRepTool/TopOpeBRepTool_CurveTool.cxx b/src/ModelingAlgorithms/TKBool/TopOpeBRepTool/TopOpeBRepTool_CurveTool.cxx index 71072f4ae9..a65a45b395 100644 --- a/src/ModelingAlgorithms/TKBool/TopOpeBRepTool/TopOpeBRepTool_CurveTool.cxx +++ b/src/ModelingAlgorithms/TKBool/TopOpeBRepTool/TopOpeBRepTool_CurveTool.cxx @@ -113,10 +113,8 @@ void TopOpeBRepTool_CurveTool::SetGeomTool(const TopOpeBRepTool_GeomTool& GT) myGeomTool.Define(GT); } -//----------------------------------------------------------------------- -// function : MakePCurve -// purpose : -//----------------------------------------------------------------------- +//================================================================================================= + Standard_EXPORT Handle(Geom2d_Curve) MakePCurve(const ProjLib_ProjectedCurve& PC) { Handle(Geom2d_Curve) C2D; diff --git a/src/ModelingAlgorithms/TKBool/TopOpeBRepTool/TopOpeBRepTool_PROJECT.cxx b/src/ModelingAlgorithms/TKBool/TopOpeBRepTool/TopOpeBRepTool_PROJECT.cxx index cfe84995d0..0e6a247065 100644 --- a/src/ModelingAlgorithms/TKBool/TopOpeBRepTool/TopOpeBRepTool_PROJECT.cxx +++ b/src/ModelingAlgorithms/TKBool/TopOpeBRepTool/TopOpeBRepTool_PROJECT.cxx @@ -246,9 +246,7 @@ Standard_EXPORT Standard_Boolean FUN_tool_projPonS(const gp_Pnt& P return Standard_True; } -// ---------------------------------------------------------------------- -// projecting point

on topologies (edge ,face ) -// ---------------------------------------------------------------------- +//================================================================================================= // ---------------------------------------------------------------------- Standard_EXPORT Standard_Boolean FUN_tool_projPonE(const gp_Pnt& P, diff --git a/src/ModelingAlgorithms/TKBool/TopOpeBRepTool/TopOpeBRepTool_TOPOLOGY.cxx b/src/ModelingAlgorithms/TKBool/TopOpeBRepTool/TopOpeBRepTool_TOPOLOGY.cxx index b15776f91e..b3418b217a 100644 --- a/src/ModelingAlgorithms/TKBool/TopOpeBRepTool/TopOpeBRepTool_TOPOLOGY.cxx +++ b/src/ModelingAlgorithms/TKBool/TopOpeBRepTool/TopOpeBRepTool_TOPOLOGY.cxx @@ -718,9 +718,7 @@ Standard_EXPORT void FUN_tool_mkBnd2d(const TopoDS_Shape& W, const TopoDS_Shape& FUN_tool_UpdateBnd2d(B2d, newB2d); } -// ---------------------------------------------------------------------- -// closing topologies : -// ---------------------------------------------------------------------- +//================================================================================================= // ---------------------------------------------------------------------- Standard_EXPORT Standard_Boolean FUN_tool_IsClosingE(const TopoDS_Edge& E, @@ -767,9 +765,7 @@ Standard_EXPORT Standard_Boolean FUN_tool_ClosedE(const TopoDS_Edge& E,TopoDS_Sh return Standard_False; }*/ -// ---------------------------------------------------------------------- -// shared topologies : -// ---------------------------------------------------------------------- +//================================================================================================= // ---------------------------------------------------------------------- Standard_EXPORT Standard_Boolean FUN_tool_inS(const TopoDS_Shape& subshape, @@ -1063,9 +1059,7 @@ Standard_EXPORT Standard_Boolean FUN_tool_findPinE(const TopoDS_Shape& E, return r; } -// ---------------------------------------------------------------------- -// tolerances : -// ---------------------------------------------------------------------- +//================================================================================================= // ---------------------------------------------------------------------- Standard_EXPORT Standard_Boolean FUN_tool_maxtol(const TopoDS_Shape& S, @@ -1319,9 +1313,7 @@ Standard_EXPORT Standard_Boolean FUN_tool_pcurveonF(const TopoDS_Face& return Standard_False; } -// ---------------------------------------------------------------------- -// shared geometry : -// ---------------------------------------------------------------------- +//================================================================================================= // ---------------------------------------------------------------------- Standard_EXPORT Standard_Boolean FUN_tool_curvesSO(const TopoDS_Edge& E1, @@ -1426,9 +1418,7 @@ Standard_EXPORT Standard_Boolean FUN_tool_findAncestor(const TopTools_ListOfShap return Standard_False; } -// ---------------------------------------------------------------------- -// new topologies : -// ---------------------------------------------------------------------- +//================================================================================================= // FUN_ds_* methods are methods of TopOpeBRepDS_BuildTool // that cannot be called (cyclic dependencies) diff --git a/src/ModelingAlgorithms/TKBool/TopOpeBRepTool/TopOpeBRepTool_matter.cxx b/src/ModelingAlgorithms/TKBool/TopOpeBRepTool/TopOpeBRepTool_matter.cxx index 2fab9a6024..d2fc113927 100644 --- a/src/ModelingAlgorithms/TKBool/TopOpeBRepTool/TopOpeBRepTool_matter.cxx +++ b/src/ModelingAlgorithms/TKBool/TopOpeBRepTool/TopOpeBRepTool_matter.cxx @@ -25,9 +25,7 @@ #define M_INTERNAL(ori) (ori == TopAbs_INTERNAL) #define M_EXTERNAL(ori) (ori == TopAbs_EXTERNAL) -// ---------------------------------------------------------------------- -// oriented vectors : -// ---------------------------------------------------------------------- +//================================================================================================= // ---------------------------------------------------------------------- Standard_EXPORT gp_Dir FUN_tool_nCinsideS(const gp_Dir& tgC, const gp_Dir& ngS) diff --git a/src/ModelingAlgorithms/TKFillet/BRepBlend/BRepBlend_RstRstLineBuilder.cxx b/src/ModelingAlgorithms/TKFillet/BRepBlend/BRepBlend_RstRstLineBuilder.cxx index c147a12d2a..44182a2982 100644 --- a/src/ModelingAlgorithms/TKFillet/BRepBlend/BRepBlend_RstRstLineBuilder.cxx +++ b/src/ModelingAlgorithms/TKFillet/BRepBlend/BRepBlend_RstRstLineBuilder.cxx @@ -189,10 +189,7 @@ BRepBlend_RstRstLineBuilder::BRepBlend_RstRstLineBuilder(const Handle(Adaptor3d_ { } -//======================================================================= -// function : Perform -// purpose : launch the processing -//======================================================================= +//================================================================================================= void BRepBlend_RstRstLineBuilder::Perform(Blend_RstRstFunction& Func, Blend_SurfCurvFuncInv& Finv1, diff --git a/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_SectionPlacement.cxx b/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_SectionPlacement.cxx index 78fda3c320..b5887b36bb 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_SectionPlacement.cxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_SectionPlacement.cxx @@ -363,10 +363,8 @@ void GeomFill_SectionPlacement::Perform(const Standard_Real Tol) Perform(Path, Tol); } -//=============================================================== -// Function :Perform -// Purpose : Recherche automatique -//=============================================================== +//================================================================================================= + void GeomFill_SectionPlacement::Perform(const Handle(Adaptor3d_Curve)& Path, const Standard_Real Tol) { diff --git a/src/ModelingAlgorithms/TKGeomAlgo/GeomPlate/GeomPlate_BuildPlateSurface.cxx b/src/ModelingAlgorithms/TKGeomAlgo/GeomPlate/GeomPlate_BuildPlateSurface.cxx index d9e408c188..de4952c785 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/GeomPlate/GeomPlate_BuildPlateSurface.cxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/GeomPlate/GeomPlate_BuildPlateSurface.cxx @@ -225,9 +225,8 @@ GeomPlate_BuildPlateSurface::GeomPlate_BuildPlateSurface(const Standard_Integer // ========================================================= //\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\// -//------------------------------------------------------------------------- -// Function : TrierTab, internal Function, does not belong to class -//------------------------------------------------------------------------- +//================================================================================================= + // Reorder the table of transformations // After the call of CourbeJointive the order of curves is modified // Ex : initial order of curves ==> A B C D E F @@ -1352,9 +1351,8 @@ Standard_Boolean GeomPlate_BuildPlateSurface::CourbeJointive(const Standard_Real return Standard_False; } -//------------------------------------------------------------------------- -// Function : ComputeSurfInit -//------------------------------------------------------------------------- +//================================================================================================= + // Calculate the initial surface either by the method of max flow or by // the method of the plane of inertia if the contour is not closed or if // there are point constraints. diff --git a/src/ModelingAlgorithms/TKGeomAlgo/IntPatch/IntPatch_PrmPrmIntersection.cxx b/src/ModelingAlgorithms/TKGeomAlgo/IntPatch/IntPatch_PrmPrmIntersection.cxx index 5d2af870d3..5ef4276a52 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/IntPatch/IntPatch_PrmPrmIntersection.cxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/IntPatch/IntPatch_PrmPrmIntersection.cxx @@ -2337,10 +2337,8 @@ IntSurf_PntOn2S MakeNewPoint(const IntSurf_PntOn2S& replacePnt, return NewPoint; } -//================================================================================== -// function : Perform -// purpose : base SS Int. function -//================================================================================== +//================================================================================================= + void IntPatch_PrmPrmIntersection::Perform(const Handle(Adaptor3d_Surface)& Surf1, const Handle(Adaptor3d_TopolTool)& D1, const Handle(Adaptor3d_Surface)& Surf2, diff --git a/src/ModelingAlgorithms/TKGeomAlgo/Intf/Intf_TangentZone.cxx b/src/ModelingAlgorithms/TKGeomAlgo/Intf/Intf_TangentZone.cxx index b4e4a702a5..37451b11b5 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/Intf/Intf_TangentZone.cxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/Intf/Intf_TangentZone.cxx @@ -292,10 +292,7 @@ Standard_Boolean Intf_TangentZone::HasCommonRange(const Intf_TangentZone& Other) return Standard_False; } -//======================================================================= -// function : Dump -// purpose : Dump the TangentZone. -//======================================================================= +//================================================================================================= void Intf_TangentZone::Dump(const Standard_Integer /*Indent*/) const { diff --git a/src/ModelingAlgorithms/TKHLR/Contap/Contap_ArcFunction.cxx b/src/ModelingAlgorithms/TKHLR/Contap/Contap_ArcFunction.cxx index 364968aaf6..646d9c92b4 100644 --- a/src/ModelingAlgorithms/TKHLR/Contap/Contap_ArcFunction.cxx +++ b/src/ModelingAlgorithms/TKHLR/Contap/Contap_ArcFunction.cxx @@ -200,10 +200,9 @@ Standard_Integer Contap_ArcFunction::NbSamples() const } // modified by NIZNHY-PKV Thu Mar 29 16:53:07 2001f -//======================================================================= -// function : Quadric -// purpose : returns empty Quadric -//======================================================================= + +//================================================================================================= + const IntSurf_Quadric& Contap_ArcFunction::Quadric() const { return (myQuad); diff --git a/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_EdgeBuilder.cxx b/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_EdgeBuilder.cxx index a4d1a7ca83..db981e2a9c 100644 --- a/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_EdgeBuilder.cxx +++ b/src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_EdgeBuilder.cxx @@ -211,10 +211,7 @@ HLRBRep_EdgeBuilder::HLRBRep_EdgeBuilder(HLRBRep_VertexList& VList) Builds(TopAbs_IN); } -//======================================================================= -// function : InitAreas -// purpose : set on the first area -//======================================================================= +//================================================================================================= void HLRBRep_EdgeBuilder::InitAreas() { diff --git a/src/ModelingAlgorithms/TKPrim/BRepPrim/BRepPrim_Builder.cxx b/src/ModelingAlgorithms/TKPrim/BRepPrim/BRepPrim_Builder.cxx index 1307d4ba47..0bb617fdf7 100644 --- a/src/ModelingAlgorithms/TKPrim/BRepPrim/BRepPrim_Builder.cxx +++ b/src/ModelingAlgorithms/TKPrim/BRepPrim/BRepPrim_Builder.cxx @@ -183,10 +183,7 @@ void BRepPrim_Builder::SetParameters(TopoDS_Edge& E, myBuilder.Range(E, P1, P2); } -//======================================================================= -// function : AddWireEdge -// purpose : Add an Edge to a Wire -//======================================================================= +//================================================================================================= void BRepPrim_Builder::AddWireEdge(TopoDS_Wire& W, const TopoDS_Edge& E, @@ -205,10 +202,7 @@ void BRepPrim_Builder::AddFaceWire(TopoDS_Face& F, const TopoDS_Wire& W) const myBuilder.Add(F, W); } -//======================================================================= -// function : AddShellFace -// purpose : Add a Face to a Shell -//======================================================================= +//================================================================================================= void BRepPrim_Builder::AddShellFace(TopoDS_Shell& S, const TopoDS_Face& F) const { diff --git a/src/ModelingAlgorithms/TKTopAlgo/BRepExtrema/BRepExtrema_DistanceSS.cxx b/src/ModelingAlgorithms/TKTopAlgo/BRepExtrema/BRepExtrema_DistanceSS.cxx index ad0aa4450b..192b8b8066 100644 --- a/src/ModelingAlgorithms/TKTopAlgo/BRepExtrema/BRepExtrema_DistanceSS.cxx +++ b/src/ModelingAlgorithms/TKTopAlgo/BRepExtrema/BRepExtrema_DistanceSS.cxx @@ -54,9 +54,8 @@ /*********************************************************************************/ -//------------------------------------------------------------------------------ -// function: TRI_SOLUTION -//------------------------------------------------------------------------------ +//================================================================================================= + static Standard_Boolean TRI_SOLUTION(const BRepExtrema_SeqOfSolution& SeqSol, const gp_Pnt& Pt) { for (BRepExtrema_SeqOfSolution::iterator anIt = SeqSol.begin(); anIt != SeqSol.end(); anIt++) @@ -70,9 +69,8 @@ static Standard_Boolean TRI_SOLUTION(const BRepExtrema_SeqOfSolution& SeqSol, co return Standard_True; } -//------------------------------------------------------------------------------ -// function: MIN_SOLUTION -//------------------------------------------------------------------------------ +//================================================================================================= + static void MIN_SOLUTION(const BRepExtrema_SeqOfSolution& SeqSol1, const BRepExtrema_SeqOfSolution& SeqSol2, const Standard_Real DstRef, @@ -93,9 +91,8 @@ static void MIN_SOLUTION(const BRepExtrema_SeqOfSolution& SeqSol1, } } -//------------------------------------------------------------------------------ -// function: TRIM_INFINIT_EDGE -//------------------------------------------------------------------------------ +//================================================================================================= + static void TRIM_INFINIT_EDGE(const TopoDS_Edge& S1, const TopoDS_Edge& S2, TopoDS_Edge& aResEdge, @@ -220,9 +217,8 @@ static void TRIM_INFINIT_EDGE(const TopoDS_Edge& S1, } } -//------------------------------------------------------------------------------ -// function: TRIM_INFINIT_FACE -//------------------------------------------------------------------------------ +//================================================================================================= + static void TRIM_INFINIT_FACE(const TopoDS_Shape& S1, const TopoDS_Shape& S2, TopoDS_Face& aResFace, @@ -409,9 +405,8 @@ static void TRIM_INFINIT_FACE(const TopoDS_Shape& S1, bIsInfinit = Standard_False; } -//------------------------------------------------------------------------------ -// static function: PERFORM_C0 -//------------------------------------------------------------------------------ +//================================================================================================= + static void PERFORM_C0(const TopoDS_Edge& S1, const TopoDS_Edge& S2, BRepExtrema_SeqOfSolution& SeqSol1, diff --git a/src/ModelingData/TKBRep/BRep/BRep_Tool.cxx b/src/ModelingData/TKBRep/BRep/BRep_Tool.cxx index d43cab7829..69f85c65fb 100644 --- a/src/ModelingData/TKBRep/BRep/BRep_Tool.cxx +++ b/src/ModelingData/TKBRep/BRep/BRep_Tool.cxx @@ -1229,10 +1229,7 @@ GeomAbs_Shape BRep_Tool::MaxContinuity(const TopoDS_Edge& theEdge) return aMaxCont; } -//======================================================================= -// function : Pnt -// purpose : Returns the 3d point. -//======================================================================= +//================================================================================================= gp_Pnt BRep_Tool::Pnt(const TopoDS_Vertex& V) { diff --git a/src/ModelingData/TKGeomBase/FEmTool/FEmTool_Assembly.cxx b/src/ModelingData/TKGeomBase/FEmTool/FEmTool_Assembly.cxx index 2bda89207d..5cbceade7d 100644 --- a/src/ModelingData/TKGeomBase/FEmTool/FEmTool_Assembly.cxx +++ b/src/ModelingData/TKGeomBase/FEmTool/FEmTool_Assembly.cxx @@ -22,9 +22,8 @@ #include #include -//---------------------------------------------------------------------------- -// Purpose - to find min index of global variables and define -//---------------------------------------------------------------------------- +//================================================================================================= + static Standard_Integer MinIndex(const Handle(FEmTool_HAssemblyTable)& Table) { Standard_Integer dim, el, nvar, Imin; @@ -51,9 +50,8 @@ static Standard_Integer MinIndex(const Handle(FEmTool_HAssemblyTable)& Table) return Imin; } -//---------------------------------------------------------------------------- -// Purpose - to find max index of global variables -//---------------------------------------------------------------------------- +//================================================================================================= + static Standard_Integer MaxIndex(const Handle(FEmTool_HAssemblyTable)& Table) { Standard_Integer dim, el, nvar, Imax; diff --git a/src/Visualization/TKIVtk/IVtkTools/IVtkTools_ShapeObject.cxx b/src/Visualization/TKIVtk/IVtkTools/IVtkTools_ShapeObject.cxx index 3e19865cab..9dd136664f 100644 --- a/src/Visualization/TKIVtk/IVtkTools/IVtkTools_ShapeObject.cxx +++ b/src/Visualization/TKIVtk/IVtkTools/IVtkTools_ShapeObject.cxx @@ -137,10 +137,8 @@ vtkStandardNewMacro(IVtkTools_ShapeObject) { } -//============================================================================ -// Method: Destructor -// Purpose: Protected destructor. -//============================================================================ +//================================================================================================= + IVtkTools_ShapeObject::~IVtkTools_ShapeObject() {} //================================================================================================= diff --git a/src/Visualization/TKOpenGl/OpenGl/OpenGl_ShaderStates.cxx b/src/Visualization/TKOpenGl/OpenGl/OpenGl_ShaderStates.cxx old mode 100755 new mode 100644 index 664dd46a11..9fe10c98eb --- a/src/Visualization/TKOpenGl/OpenGl/OpenGl_ShaderStates.cxx +++ b/src/Visualization/TKOpenGl/OpenGl/OpenGl_ShaderStates.cxx @@ -136,10 +136,8 @@ OpenGl_ClippingState::OpenGl_ClippingState() // } -// ======================================================================= -// function : Update -// purpose : Updates current state -// ======================================================================= +//================================================================================================= + void OpenGl_ClippingState::Update() { myStateStack.Prepend(myIndex); @@ -147,10 +145,8 @@ void OpenGl_ClippingState::Update() ++myNextIndex; } -// ======================================================================= -// function : Revert -// purpose : Reverts current state -// ======================================================================= +//================================================================================================= + void OpenGl_ClippingState::Revert() { if (!myStateStack.IsEmpty()) diff --git a/src/Visualization/TKService/Font/Font_FTFont.hxx b/src/Visualization/TKService/Font/Font_FTFont.hxx old mode 100755 new mode 100644 diff --git a/src/Visualization/TKService/Font/Font_TextFormatter.hxx b/src/Visualization/TKService/Font/Font_TextFormatter.hxx old mode 100755 new mode 100644 diff --git a/src/Visualization/TKV3d/AIS/AIS_InteractiveContext.cxx b/src/Visualization/TKV3d/AIS/AIS_InteractiveContext.cxx index 860f9b495d..969247a396 100644 --- a/src/Visualization/TKV3d/AIS/AIS_InteractiveContext.cxx +++ b/src/Visualization/TKV3d/AIS/AIS_InteractiveContext.cxx @@ -2786,10 +2786,8 @@ AIS_StatusOfPick AIS_InteractiveContext::Select(const Standard_Integer theXPMin return aStatus; } -//======================================================================= -// function : Select -// purpose : Selection by polyline -//======================================================================= +//================================================================================================= + AIS_StatusOfPick AIS_InteractiveContext::Select(const TColgp_Array1OfPnt2d& thePolyline, const Handle(V3d_View)& theView, const Standard_Boolean theToUpdateViewer) diff --git a/src/Visualization/TKV3d/AIS/AIS_Manipulator.cxx b/src/Visualization/TKV3d/AIS/AIS_Manipulator.cxx index 65da48b6e0..0a31ad04c3 100644 --- a/src/Visualization/TKV3d/AIS/AIS_Manipulator.cxx +++ b/src/Visualization/TKV3d/AIS/AIS_Manipulator.cxx @@ -1794,11 +1794,7 @@ AIS_Manipulator::Axis::Axis(const gp_Ax1& theAxis, // } -//======================================================================= -// class : Axis -// function : Compute -// purpose : -//======================================================================= +//================================================================================================= void AIS_Manipulator::Axis::Compute(const Handle(PrsMgr_PresentationManager)& thePrsMgr, const Handle(Prs3d_Presentation)& thePrs, diff --git a/src/Visualization/TKV3d/DsgPrs/DsgPrs_AnglePresentation.cxx b/src/Visualization/TKV3d/DsgPrs/DsgPrs_AnglePresentation.cxx index 19a23683c6..46af0a084f 100644 --- a/src/Visualization/TKV3d/DsgPrs/DsgPrs_AnglePresentation.cxx +++ b/src/Visualization/TKV3d/DsgPrs/DsgPrs_AnglePresentation.cxx @@ -39,9 +39,8 @@ #include -//------------------------------------------------------------------------------------------------------------------ -// Returns 1 if C is above of CMin; 0 if C is between CMin and CMax; -1 if C is Below CMax -//----------------------------------------------------------------------------------------------------------------- +//================================================================================================= + static Standard_Integer AboveInBelowCone(const gp_Circ& CMax, const gp_Circ& CMin, const gp_Circ& C) { const Standard_Real D = CMax.Location().Distance(CMin.Location()); diff --git a/src/Visualization/TKV3d/PrsDim/PrsDim_LengthDimension.cxx b/src/Visualization/TKV3d/PrsDim/PrsDim_LengthDimension.cxx index 506b520e74..409238ed85 100644 --- a/src/Visualization/TKV3d/PrsDim/PrsDim_LengthDimension.cxx +++ b/src/Visualization/TKV3d/PrsDim/PrsDim_LengthDimension.cxx @@ -102,10 +102,8 @@ PrsDim_LengthDimension::PrsDim_LengthDimension(const TopoDS_Shape& theFirstShape SetFlyout(15.0); } -//======================================================================= -// function : Constructor -// purpose : Dimension of one edge -//======================================================================= +//================================================================================================= + PrsDim_LengthDimension::PrsDim_LengthDimension(const TopoDS_Edge& theEdge, const gp_Pln& thePlane) : PrsDim_Dimension(PrsDim_KOD_LENGTH), myHasCustomDirection(Standard_False) diff --git a/src/Visualization/TKV3d/PrsDim/PrsDim_PerpendicularRelation.cxx b/src/Visualization/TKV3d/PrsDim/PrsDim_PerpendicularRelation.cxx index 9206da78c3..3987028613 100644 --- a/src/Visualization/TKV3d/PrsDim/PrsDim_PerpendicularRelation.cxx +++ b/src/Visualization/TKV3d/PrsDim/PrsDim_PerpendicularRelation.cxx @@ -44,10 +44,8 @@ IMPLEMENT_STANDARD_RTTIEXT(PrsDim_PerpendicularRelation, PrsDim_Relation) -//======================================================================= -// function : Constructor -// purpose : TwoEdgesPerpendicular -//======================================================================= +//================================================================================================= + PrsDim_PerpendicularRelation::PrsDim_PerpendicularRelation(const TopoDS_Shape& aFShape, const TopoDS_Shape& aSShape, const Handle(Geom_Plane)& aPlane) @@ -58,10 +56,8 @@ PrsDim_PerpendicularRelation::PrsDim_PerpendicularRelation(const TopoDS_Shape& myPlane = aPlane; } -//======================================================================= -// function : Constructor -// purpose : TwoFacesPerpendicular -//======================================================================= +//================================================================================================= + PrsDim_PerpendicularRelation::PrsDim_PerpendicularRelation(const TopoDS_Shape& aFShape, const TopoDS_Shape& aSShape) : PrsDim_Relation() diff --git a/src/Visualization/TKV3d/SelectMgr/SelectMgr_SelectableObjectSet.cxx b/src/Visualization/TKV3d/SelectMgr/SelectMgr_SelectableObjectSet.cxx index 4c2345ed40..b722915367 100644 --- a/src/Visualization/TKV3d/SelectMgr/SelectMgr_SelectableObjectSet.cxx +++ b/src/Visualization/TKV3d/SelectMgr/SelectMgr_SelectableObjectSet.cxx @@ -24,9 +24,7 @@ namespace //! Short-cut definition of indexed data map of selectable objects typedef NCollection_IndexedMap ObjectsMap; -//------------------------------------------------------------------------------------- -// Adaptor over regular objects subset of SelectMgr_SelectableObjectSet for BVH builder -//------------------------------------------------------------------------------------- +//================================================================================================= //! This class provides direct access to fields of SelectMgr_SelectableObjectSet //! so the BVH builder could explicitly arrange objects in the map as necessary @@ -93,9 +91,7 @@ private: mutable Select3D_BndBox3d myBox; }; -//---------------------------------------------------------------------------------------- -// Adaptor over persistent objects subset of SelectMgr_SelectableObjectSet for BVH builder -//---------------------------------------------------------------------------------------- +//================================================================================================= //! This class provides direct access to fields of SelectMgr_SelectableObjectSet //! so the BVH builder could explicitly arrange objects in the map as necessary -- 2.39.5