| Table of Contents ▸ List of Commands ▸ Reptorian's Commands ▸ rep_string_permutation_str2index | ◀ rep_string_permutation_index2str | rep_permute_channels ▶ |
rep_string_permutation_str2index
Arguments:
- test_string or
- reference_string,test_string,_sort_reference_string={ 0=do_not_sort_string | 1=sort_string | 2=logical_sort_string }
Description:
Return the lexicographic rank in which the permutation of string is found. The rank is based on character appearance order. If you provide only one argument, then rank is dependent on alphabetical order.Algorithm to find the lexicographic rank of string has been made by egoista of GeeksForGeeks and source code can be found here - https://www.geeksforgeeks.org/lexicographic-rank-string-duplicate-characters/
Author : Reptorian.
Default values:
_sort_reference_string=0


Home
Download
News
Mastodon
Bluesky
X
Summary - 18 Years
Summary - 17 Years
Summary - 16 Years
Summary - 15 Years
Summary - 13 Years
Summary - 11 Years
Summary - 10 Years
Resources
Technical Reference
Scripting Tutorial
Video Tutorials
Wiki Pages
Image Gallery
Color Presets
Using libgmic
G'MIC Online
Community
Discussion Forum (Pixls.us)
GimpChat
IRC
Report Issue