Re: [sword-devel] Multiple Feature entries from getConfigEntry().

2024-06-17 Thread David "Judah's Shadow" Blue
On Tuesday, June 11, 2024 4:07:33 PM EDT Troy A. Griffitts wrote: > Try changing your begin and end iterator types to const, e.g. > > sword::ConfigEntMap::const_iterator > Ah yes, that compiles, I can't get it linked because my distro upgraded ICU, but that'll be another thread _

Re: [sword-devel] Multiple Feature entries from getConfigEntry().

2024-06-11 Thread Troy A. Griffitts
Try changing your begin and end iterator types to const, e.g. sword::ConfigEntMap::const_iterator On June 11, 2024 21:34:52 GMT+02:00, "David "Judah's Shadow" Blue" wrote: >On Monday, May 20, 2024 2:37:07 PM EDT David "Judah's Shadow" Blue wrote: >> On Wednesday, May 15, 2024 9:01:14 AM EDT Tr

Re: [sword-devel] Multiple Feature entries from getConfigEntry().

2024-06-11 Thread David "Judah's Shadow" Blue
On Monday, May 20, 2024 2:37:07 PM EDT David "Judah's Shadow" Blue wrote: > On Wednesday, May 15, 2024 9:01:14 AM EDT Troy A. Griffitts wrote: > > Hi David, > > > > Yeah, so a module's config is simply a multimap. We > > extend multimap with our own class multimapwithdefault to make it nice > >

Re: [sword-devel] Multiple Feature entries from getConfigEntry().

2024-05-20 Thread David "Judah's Shadow" Blue
On Wednesday, May 15, 2024 9:01:14 AM EDT Troy A. Griffitts wrote: > Hi David, > > Yeah, so a module's config is simply a multimap. We > extend multimap with our own class multimapwithdefault to make it nice > to work with when there is only one entry so you can still simply say: > > SWBuf x =

Re: [sword-devel] Multiple Feature entries from getConfigEntry().

2024-05-15 Thread Troy A. Griffitts
Hi David, Yeah, so a module's config is simply a multimap.  We extend multimap with our own class multimapwithdefault to make it nice to work with when there is only one entry so you can still simply say:  SWBuf x = configEntries["mykey"]; Just like a map works, but if there is more than one