a b/branches/develop/mqttsparkplug/mqttsparkplug/Sparkplug™ MQTT edge and host/Functions/ReturnFileName/svnobj
1
Gx_ln!0…jüo=^ªÑ4    w¹ÖYSystem.StringL{6f9dac99-8de1-4efc-8465-68ac443b7d08}SpecialFuncL{0db3d7bb-cde0-4416-9a7b-ce49a0124323}NoneImplementationL{3b83b776-fb25-43b8-99f2-3c507c9143fc}TextDocument L{f3878285-8e4f-490b-bb1b-9acbb7eb04db}
2
TextLinesL{a5de0b0b-1cb5-4913-ac21-9d70293ec00d}Id
longTagText(PT := ADR(FileName);–l := stu.StrLenW(pstData := ADR(FileName)); //get length of filename & pathSLASH_CNT := 0;(FOR pos := 1 TO l DON    IF pt^ = GC_sparkplug.FW_SLASH THENF        SLASH_CNT := SLASH_CNT + 1;    END_IF;"    PT := PT + 1;END_FOR;RRightMostAfterLastSlash := l - SLASH_CNT;|Stu.StrMidW(pwst := ADR(FileName), // assume pointer to bufferd            uiInputBufferSize := SIZEOF(FileName),˜            iLength := TO_INT((SIZEOF(FileName) - RightMostAfterLastSlash)),r            iPosition := TO_INT(RightMostAfterLastSlash),\            pwstResult := ADR(ReturnFileName), t            uiResultBufferSize := SIZEOF(ReturnFileName));!Interface"L{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}#BFUNCTION ReturnFileName : WSTRING$VAR_INPUT%œ    FileName : T_MaxString; // File name can contain an absolute or relative path to the file. Path entries must be separated with a Slash (/)&END_VAR'VAR(*    SLASH_CNT : UINT;)    l: DINT;*2    pt : POINTER TO WSTRING;+ pos: DINT;,F    RightMostAfterLastSlash : DINT;-"UniqueIdGenerator.39/POULevel0L{8e575c5b-1d37-49c6-941b-5c0ec7874787}1Standard2 ChildObjectGuids38System.Collections.ArrayList4,AddAttributeSubsequent5boolÐÐ-ÐÐ  E
3
ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ ÚÐ-ÐÐ
­!ÚÐ-ÐÐ
­"ÚÐ-ÐÐ
­#ÚÐ-ÐÐ
­$ÚÐ-ÐÐ
­%ÚÐ-ÐÐ
­&ÚÐ-ÐÐ
­'ÚÐ-ÐÐ
­ÚÐ- Ð!"Ð E
4
ÐÐ
­ÚÐ-#ÐÐ
­
ÚÐ-$ÐÐ
­ÚÐ-%ÐÐ
­ÚÐ-&ÐÐ
­ÚÐ-'ÐÐ
­ÚÐ-(ÐÐ
­ÚÐ-)ÐÐ
­ÚÐ-*ÐÐ
­ÚÐ-+ÐÐ
­ÚÐ-,ÐÐ
­ÚÐ-&Ð--.Ð/0-123Ð45­