<?php
/***************************************************************************
- * Copyright (C) 2003-2011 Polytechnique.org *
+ * Copyright (C) 2003-2014 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
// Extracts the first token of the name.
if (!preg_match('/^(\pL+)(([\' -])(.*))?$/ui', $name, $m)) {
- return false;
+ return '';
}
$token = mb_strtolower($m[1]);
if (($tail = capitalize_name($tail))) {
return $token . $separator . $tail;
}
- return false;
+ return '';
}
return $token . $separator;
}
-// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker fenc=utf-8:
?>