but is there a leftpad package available?
https://code.woboq.org/kde/qt4/src/corelib/tools/qstring.cpp...
My guess is that these Qt people probably use an IDE and want to be able to immediately see what methods are available in the context of a QString. Then they want code completion as they supply parameters to it. That's so OO. (Ok the method is immutable and composable but its still blatant 90s object orientation)