STR #3186

GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

Return to Bugs & Features | Roadmap 1.3 | Post Text | Post File | Prev | Next ]

STR #3186

Application:FLTK Library
Status:5 - New
Priority:2 - Low, e.g. a documentation error or undocumented side-effect
Scope:3 - Applies to all machines and operating systems
Subsystem:Core Library
Summary:fl_filename_match() inconsistent with case sensitivity
Version:1.3-current
Created By:ajapted
Assigned To:engelsman
Fix Version:Unassigned
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

Post File ]

No files


Trouble Report Comments:

Post Text ]
Name/Time/Date Text top right image
 
#1 ajapted
01:48 Feb 09, 2015
The fl_filename_match() function matches normal text in a
case-insensitive way, 'a' == 'A' etc, and that is fine.

However the characters in a [] set, like "[a-z]", are matched
case-sensitively, which is inconsistent with how normal text is
matched.

It is fairly easier to fix the handling of [] sets to match
case-insenstivetly.  I also suggest updating the documentation
of the function to note its general case-insensitivity (as the
current wording says that a character matches "exactly", which
is not really correct).
 
 
#2 engelsman
03:02 Jul 25, 2020
I've created a github pull request against fltk-1.4.x
See https://github.com/fltk/fltk/pull/118
 
bottom left image   bottom right image

Return to Bugs & Features | Post Text | Post File ]

 
 

Comments are owned by the poster. All other content is copyright 1998-2021 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.