LibMsrp_Functions.ttcn 562 Bytes
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 all;
    function f_str2msrpUri(in charstring p_uri, out MsrpURI p_msrpUri) 
Bostjan Pintar's avatar
Bostjan Pintar committed
    return boolean {
        var integer v_res := 0;
        var bitstring v_oct2bit := oct2bit(char2oct(p_uri));
        v_res := decvalue(v_oct2bit, p_msrpUri);
Bostjan Pintar's avatar
Bostjan Pintar committed
        
        return v_res == 0;
    } // End of function f_str2msrpUri
    
} // End of LibMsrp_Functions