lutin/codeBB/BB_comment.py

27 lines
407 B
Python

#!/usr/bin/python
import lutinDebug as debug
import sys
import lutinTools
import re
##
## @brief Transcode balise:
## /* ... */
## @param[in] value String to transform.
## @return Transformed string.
##
def transcode(value):
value = re.sub(r'\/\*(.*?)\*\/',
r'',
value)
value = re.sub(r'\/\/(.*?)\n',
r'',
value)
return value