Postgres String Length Function In Cpp