23-24 September 2021
Europe/Zurich timezone

Improving Strings Support in Fortran (GSoC Project)

24 Sep 2021, 18:00
ZOOM (Virtual)



Fortran-lang Communications Minisymposium


Aman Godara (Fortran-lang)


To provide better support for strings, the Fortran Standard Library (stdlib) introduces stdlib_string_type, stdlib_strings and stdlib_stringlist module.

Since the start of the project, several string inquiry and manipulation procedures like pad, find, replace-all, etc have been added, adhering to the philosophy of unifying the community and providing simple and intuitive abstraction to the users.

Every type of usage from common ones like reversing a string to peculiar ones like finding n-th non-overlapping substring are developed in close collaboration with the community.
Flexible high-level procedures like slice cater to every possible need while low-level APIs like count are optimized to readily build upon (as stand-alone or in combination with other provided APIs) to meet any specific requirement of a user.

All procedures work with deferred-length intrinsic character as smoothly as with string-type. This allows for a seamless integration of stdlib's string processing with the existing projects. Moreover, APIs being backward compatible will continue to serve old projects even with their latest versions.

Primary author

Aman Godara (Fortran-lang)


Sebastian Ehlert (Mulliken Center for Theoretical Chemistry, Bonn) Milan Curcic (University of Miami)

Presentation Materials