@@ -331,24 +331,26 @@
331 331 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
nSubmenuCtrl++;
332 332 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
}
333 333 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
}
334 334 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
335 335 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
/* Add hyperlinks depending on the existence and values of special
336 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- ** parameters in the request's query string. The names of these
337 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- ** parameters that are investigated are obtainted by concatenation
338 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- ** of zPrefix with suffix "smplX", where X is either nothing or
339 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- ** a positive digit <= nMaxDigit. zPrefix must start with a lowercase
340 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- ** letter, be short and have no strange characters. A value is
341 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- ** well-formed if its first filepath segment (separated by '/')
342 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- ** has no strange characters. The labels of the resulting submenu items
343 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- ** are equal to the well-formed values that are prepended by "✧"
344 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- ** unless a value starts with a lowercase letter.
345 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- ** Malformed values are silently ignored.
336 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ ** parameters in the request's query string. The names of a query's
337 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ ** parameters that are investigated are obtainted by concatenation of
338 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ ** the caller-provided zPrefix with suffix "smplX", where X is either
339 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ ** nothing or a positive digit. zPrefix must start with a lowercase
340 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ ** letter, be short and have no strange characters. Parameter's value
341 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ ** is well-formed if its first filepath segment (separated by '/')
342 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ ** has no strange characters. Malformed values are silently ignored.
343 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ **
344 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ ** The text for the resulting submenu item equals to the value of the
345 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ ** parameter modulus some prettification for better UX:
346 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ ** "✧" symbol is prepended unless parameter's value starts with a
347 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ ** lowercase letter or contains '/', also underscores in the first
348 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ ** path segment are replaced with spaces.
346 349 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
*/
347 350 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
void style_submenu_parametric(
348 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- const char *zPrefix, /* common prefix of the query parameters names */
349 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- const int nMaxDigit /* maximal digit on the end of param names */
351 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ const char *zPrefix /* common prefix of the query parameters names */
350 352 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
){
351 353 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
static const char *suffix = "smpl"; /* common suffix for param names */
352 354 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
static const short sfxlen = 4; /* length of the above suffix */
353 355 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
const char *zQS; /* QUERY_STRING */
354 356 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
char zN[32]; /* buffer for parameter names to probe */
@@ -363,11 +365,11 @@
363 365 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
strcpy( zN, zPrefix );
364 366 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
strcpy( zN + l, suffix );
365 367 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
l += sfxlen;
366 368 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
zN[l+1] = 0; /* nul-terminator after digit's placeholder (if any) */
367 369 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
zQS = PD("QUERY_STRING","");
368 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- for( i = 0; i <= 9 && i <= nMaxDigit; i++ ){
370 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ for( i = 0; i <= 9; i++ ){
369 371 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
const char *zV, *z;
370 372 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
zN[l] = ( i == 0 ? 0 : '0' + i ); /* ...smpl instead of ...smpl0 */
371 373 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
zV = PD(zN,"");
372 374 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
if( zV[0] == 0 || zV[0] == '/' ){
373 375 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
continue;
374 376 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!