About
User guide
API Reference
strip_trailing_comment()
Returns a copy of line with any trailing comment removed.