- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Hi,
When calling ippsRegExpFind_8u() to do a regex matching, the matched substrings will be stored in the argument IppRegExpFind object.
IppStatus ippsRegExpFind_8u(const Ipp8u* pSrc, int srcLen, IppRegExpState* pRegExpState, IppRegExpFind* pFind, int* pNumFind);
Should the caller recycling the memory used for storing the matched substrings? Or who will?
I didn't find an answer to it in neither the API doc or the example code.
Thanks,
-Evan
When calling ippsRegExpFind_8u() to do a regex matching, the matched substrings will be stored in the argument IppRegExpFind object.
IppStatus ippsRegExpFind_8u(const Ipp8u* pSrc, int srcLen, IppRegExpState* pRegExpState, IppRegExpFind* pFind, int* pNumFind);
Should the caller recycling the memory used for storing the matched substrings? Or who will?
I didn't find an answer to it in neither the API doc or the example code.
Thanks,
-Evan
Link kopiert
3 Antworten
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Hi Evan,
Actually matching substring didn't stored in the IppRegExpFind object. IppRegExpFind.pFind pointer just points inside pSrc source string where correspondingsubsting was matched. So memory recycling doesn't needed.
Igor S. Belyakov
Actually matching substring didn't stored in the IppRegExpFind object. IppRegExpFind.pFind pointer just points inside pSrc source string where correspondingsubsting was matched. So memory recycling doesn't needed.
Igor S. Belyakov
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Hi Igor,
Thanks for your reply.
So IppRegExpFind.pFind doesn't refer to a substring ending with '\0'. And we need to use IppRegExpFind.lenFind to extract the matched substring. Is that right?
Thanks,
-Evan
Thanks for your reply.
So IppRegExpFind.pFind doesn't refer to a substring ending with '\0'. And we need to use IppRegExpFind.lenFind to extract the matched substring. Is that right?
Thanks,
-Evan
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Yes, absolutely.
Igor S. Belyakov
Igor S. Belyakov
Antworten
Themen-Optionen
- RSS-Feed abonnieren
- Thema als neu kennzeichnen
- Thema als gelesen kennzeichnen
- Diesen Thema für aktuellen Benutzer floaten
- Lesezeichen
- Abonnieren
- Drucker-Anzeigeseite