This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from conans.model import Generator | |
from conans import ConanFile | |
class MesonDeps(object): | |
def __init__(self, dep, deps_cpp_info): | |
self.include_paths = ",\n".join("'%s'" % p.replace("\\", "/") | |
for p in deps_cpp_info.include_paths) | |
self.lib_paths = ",\n".join("'%s'" % p.replace("\\", "/") | |
for p in deps_cpp_info.lib_paths) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const std = @import("std"); | |
// debug switch to print all found anagrams | |
const print_all_results = false; | |
fn hashAnagram(word: []const u8) u64 { | |
var h = @as(u64, 1); | |
for (word) |c| { | |
const p = primes[c]; | |
// std.debug.assert(p != 0); |