is there a C++ function similiar to PHP's str_pad?