Skip to content

dpettas/fString

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fString License

  • fString is a pure Object-Oriented fortran library that provides String objects
  • fString is Fortran 2008+ standard compliant
  • fString is OOP designed
  • fString is a free Open Source Library

Compiler Support

Compiler Compiler Compiler Compiler

Why use fString

Fortran 2003+ standards introduce the Generic Programming in classic Fortran. The Object-Oriented turn, in this language, allows us to build classes to make our code more clear with less dummy code.

fString is one of these modules which is an enhancement of the classical Fortran Characters.

fString contains methods to add strings to values or split the context of a string of more than one substrings or even extract specific values using the pattern method. The main idea comes from python and how uses its strings.

Methods

Operators

  • Multiply Integer with Type(Str) => example
  • Assignment a Type(Str) with a Real number or Integer and vice versa => example
  • Merge a Type(Str) with a Character or another Type(Str) (//) => example
  • Addition a Type(Str) with Real number or Integer and vice versa
  • Boolean equilivalent (==) of a Type(Str) or Character