public function addFlag($flag)
    {
        
        $currentAnnotations = $this->getAnnotations();
        if (!isset($currentAnnotations[self::FLAGS])){
            $currentAnnotations[self::FLAGS] = $flag;
        }
        else if (!(mb_strpos($currentAnnotations[self::FLAGS], $flag, 0, TAO_DEFAULT_ENCODING) !== false)){
            $currentAnnotations[self::FLAGS] .= " ${flag}";
        }
    
        $this->setAnnotations($currentAnnotations);
        
    }
public function addFlag($flag)
    {
        
        $currentAnnotations = $this->getAnnotations();
        if (!isset($currentAnnotations[self::FLAGS])){
            $currentAnnotations[self::FLAGS] = $flag;
        }
        else if (!(mb_strpos($currentAnnotations[self::FLAGS], $flag, 0, TAO_DEFAULT_ENCODING) !== false)){
            $currentAnnotations[self::FLAGS] .= " ${flag}";
        }
    
        $this->setAnnotations($currentAnnotations);
        
    }
public function addFlag ( $ flag ) { $ currentAnnotations = $ this -> getAnnotations ( ) ; if ( ! isset ( $ currentAnnotations [ self :: FLAGS ] ) ) { $ currentAnnotations [ self :: FLAGS ] = $ flag ; } else if ( ! ( mb_strpos ( $ currentAnnotations [ self :: FLAGS ] , $ flag , 0 , TAO_DEFAULT_ENCODING ) !== false ) ) { $ currentAnnotations [ self :: FLAGS ] .= " ${flag}" ; } $ this -> setAnnotations ( $ currentAnnotations ) ; }
Add a PO compliant flag to the TranslationUnit. The FLAGS annotation will
created if no flags were added before.

@access public
@author Jerome Bogaerts, <jerome.bogaerts@tudor.lu>
@param  string flag A flag string.
@return void
Add a PO compliant flag to the TranslationUnit . The FLAGS annotation will created if no flags were added before .