Carathe'odory extension process and applications to Weierstrass-type integrals