Skip to content
LibMsrp_Functions.ttcn 563 B
Newer Older
Bostjan Pintar's avatar
Bostjan Pintar committed
/*
 *	@author 	STF 435
 *  @version    $Id:$
 *	@desc		This module provides the functions used by the test component 
 */
module LibMsrp_Functions {
    
    // LibMsrp
    import from LibMsrp_TypesAndValues {
        type 
            MsrpURI
    };
    
    function f_str2msrpUri(in charstring p_uri, out template MsrpURI p_msrpUri) 
    return boolean {
        var integer v_res := 0;
        v_res := decvalue(oct2bit(char2oct(p_uri)), p_msrpUri);
        
        return v_res == 0;
    } // End of function f_str2msrpUri
    
} // End of LibMsrp_Functions