[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #47950] glob and dir functions are unable to e
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #47950] glob and dir functions are unable to escape square bracket characters in Windows |
Date: |
Mon, 23 May 2016 21:37:46 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 |
Follow-up Comment #23, bug #47950 (project octave):
@Philip: Unfortunately it's not quite that simple. The replace_if algorithm
searchs for an element and replaces it with another element in a container.
For strings, the base element is a single character so you cannot replace it
with two characters.
It still shouldn't be that hard, but given that there are two modifications,
changing '\' to '/' and '[' to "\[", it may be better to use a single iterator
loop over the string and copy the string into a new variable built up
character by character.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?47950>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #47950] glob and dir functions fail with escaped wildcard characters in Windows, (continued)
- [Octave-bug-tracker] [bug #47950] glob and dir functions fail with escaped wildcard characters in Windows, Mike Miller, 2016/05/20
- [Octave-bug-tracker] [bug #47950] glob and dir functions fail with escaped wildcard characters in Windows, Lachlan Andrew, 2016/05/20
- [Octave-bug-tracker] [bug #47950] glob and dir functions fail with escaped wildcard characters in Windows, Philip Nienhuis, 2016/05/22
- [Octave-bug-tracker] [bug #47950] glob and dir functions fail with escaped wildcard characters in Windows, Mike Miller, 2016/05/22
- [Octave-bug-tracker] [bug #47950] glob and dir functions fail with escaped wildcard characters in Windows, Philip Nienhuis, 2016/05/22
- [Octave-bug-tracker] [bug #47950] glob and dir functions are unable to escape square bracket characters in Windows, Mike Miller, 2016/05/23
- [Octave-bug-tracker] [bug #47950] glob and dir functions are unable to escape square bracket characters in Windows, Rik, 2016/05/23
- [Octave-bug-tracker] [bug #47950] glob and dir functions are unable to escape square bracket characters in Windows, Philip Nienhuis, 2016/05/23
- [Octave-bug-tracker] [bug #47950] glob and dir functions are unable to escape square bracket characters in Windows, Mike Miller, 2016/05/23
- [Octave-bug-tracker] [bug #47950] glob and dir functions are unable to escape square bracket characters in Windows, Philip Nienhuis, 2016/05/23
- [Octave-bug-tracker] [bug #47950] glob and dir functions are unable to escape square bracket characters in Windows,
Rik <=
- [Octave-bug-tracker] [bug #47950] glob and dir functions are unable to escape square bracket characters in Windows, Mike Miller, 2016/05/23
- [Octave-bug-tracker] [bug #47950] glob and dir functions are unable to escape square bracket characters in Windows, Rik, 2016/05/23