quest: Factor out common functions
commitc03a6e003b06ea81c41d0229b3a5454a0cb085a8
authorOlly Betts <olly@survex.com>
Tue, 9 Aug 2022 05:22:30 +0000 (9 17:22 +1200)
committerOlly Betts <olly@survex.com>
Tue, 30 Aug 2022 03:31:18 +0000 (30 15:31 +1200)
tree0495a4619b8227e6704a4db302ae618e87e465ce
parent3c672cded7a768af55efbfa560b18709cf15ea30
quest: Factor out common functions

We had almost duplicate code to handle each option where we need to
translate a string to an integer.

(cherry picked from commit 94b497c2241a2384f684a32dc58f52bd9f118f4a)
xapian-core/examples/quest.cc