Combinations syntax

From Searchbastard

Jump to: navigation, search

A "combinations" string is used internally in the Searchbastard engines. It declares the supported combinations of the engine.

Examples:

  • "*-*" (Any language combination between the languages that the engine supports)
  • "en-da;en-de" (English-Danish and English-German)
  • "en|da" (English-Danish and Danish-English)
  • "en|da,de" (English-Danish, English-German, Danish-English, German-English)
  • "da,en,de-same" (Danish-Danish, English-English, German-German)
  • "%en-en;*-*" (All combinations, except English-English)

The string consists of match patterns which are seperated by semicolons. When determining if a combination is supported, the match patterns are tested one at a time (from left to right), until a match is found. If the match string starts with "%", it means that the combination is rejected - otherwise, it means that the combination is accepted.

Personal tools